r3754 - jhalfs/trunk/common/libs

pierre at higgs.linuxfromscratch.org pierre at higgs.linuxfromscratch.org
Fri Nov 8 14:10:11 PST 2013


Author: pierre
Date: Fri Nov  8 14:10:11 2013
New Revision: 3754

Log:
Permission problem again

Modified:
   jhalfs/trunk/common/libs/func_download_pkgs

Modified: jhalfs/trunk/common/libs/func_download_pkgs
==============================================================================
--- jhalfs/trunk/common/libs/func_download_pkgs	Thu Nov  7 12:01:04 2013	(r3753)
+++ jhalfs/trunk/common/libs/func_download_pkgs	Fri Nov  8 14:10:11 2013	(r3754)
@@ -26,9 +26,11 @@
     # Housekeeping
   [[ ! -d $BUILDDIR/sources ]] && mkdir $BUILDDIR/sources
   cd $BUILDDIR/sources
-  [[ -f MD5SUMS ]] && rm MD5SUMS
-  [[ -f MISSING_FILES.DMP ]] && rm MISSING_FILES.DMP
-  [[ -f urls.lst ]] && rm urls.lst
+    # If using CLFS, /sources is writable by all, but with sticky bit,
+    # and user does not hold MD5SUMS nor the other files, so use sudo
+  [[ -f MD5SUMS ]] && sudo rm MD5SUMS
+  [[ -f MISSING_FILES.DMP ]] && sudo rm MISSING_FILES.DMP
+  [[ -f urls.lst ]] && sudo rm urls.lst
 
     # Generate URLs file
   create_urls



More information about the alfs-log mailing list