r2608 - jhalfs/trunk/common

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Mon May 1 03:26:48 PDT 2006


Author: manuel
Date: 2006-05-01 04:26:47 -0600 (Mon, 01 May 2006)
New Revision: 2608

Modified:
   jhalfs/trunk/common/common-functions
Log:
Updates to the new download code.

Modified: jhalfs/trunk/common/common-functions
===================================================================
--- jhalfs/trunk/common/common-functions	2006-05-01 09:50:33 UTC (rev 2607)
+++ jhalfs/trunk/common/common-functions	2006-05-01 10:26:47 UTC (rev 2608)
@@ -652,8 +652,18 @@
 
     IFS=$'\x0A'  # Modify the 'internal field separator' to break on 'LF' only
     for line in `cat urls.lst`; do
+      IFS=$saveIFS  # Restore the system defaults
 
-      IFS=$saveIFS  # Restore the system defaults
+      # Skip some packages if they aren't needed
+      case $line in
+        */tcl* | */expect* | */dejagnu* | */tree* | */gcc-testsuite* )
+            [[ "$TEST" = "0" ]] && continue
+          ;;
+        */vim-*-lang* )
+            [[ "$VIMLANG" = "0" ]] && continue
+          ;;
+      esac
+
       URL1=`echo $line | cut -d" " -f1` # Upstream URL
       URL2=`echo $line | cut -d" " -f2` # Fallback URL
       FILE=`basename $URL2` # File name
@@ -684,7 +694,8 @@
       fi
 
       if ! echo "$MD5" | md5sum -c - ; then
-        exit 1
+        echo "${RED}$FILE not match MD5SUMS value${OFF}"
+        echo "$FILE not match MD5SUMS value" >> MISSING_FILES.DMP
       fi
       echo `grep "$MD5" MD5SUMS` >> MD5SUMS-$VERSION
 
@@ -700,6 +711,10 @@
 
     done
 
+    if [[ -s MISSING_FILES.DMP ]]; then
+      echo  -e "\n\n${tab_}${RED} One or more files were not retrieved or have a bad MD5SUMS chechsum.\n${tab_} Check ${L_arrow}$BUILDDIR/sources/MISSING_FILES.DMP${R_arrow} for names ${OFF}\n\n"
+    fi
+
   fi
 }
 




More information about the alfs-log mailing list