- Timestamp:
- 05/01/2006 09:20:29 PM (18 years ago)
- Branches:
- 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 8de111f
- Parents:
- aa901e7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/common-functions
raa901e7 r19528f8 488 488 if [ -d ${PROGNAME}-$LFSVRS ] ; then 489 489 cd ${PROGNAME}-$LFSVRS 490 if LC_ALL=C svn up | grep -q At && test -d $JHALFSDIR/ commands && \491 test -f $JHALFSDIR/packages && test -f $JHALFSDIR/patches; then490 if LC_ALL=C svn up | grep -q At && test -d $JHALFSDIR/${PROGNAME}-commands && \ 491 test -f $JHALFSDIR/packages ; then 492 492 echo -ne "done\n" 493 493 # Set the canonical book version … … 633 633 #----------------------------# 634 634 local saveIFS=$IFS 635 local IFS line URL1 URL2 FILE MD5 635 local IFS line URL1 URL2 FILE MD5 NOMD5 636 636 637 637 # Test if the packages must be downloaded … … 675 675 [ -f ${SRC_ARCHIVE}/$FILE ]; then 676 676 cp ${SRC_ARCHIVE}/$FILE . 677 echo "$FILE: -- copied from $SRC_ARCHIVE" 677 echo "$FILE: -- copied from $SRC_ARCHIVE" && continue 678 678 fi 679 679 … … 685 685 echo "${RED}$FILE not found in MD5SUMS${OFF}" 686 686 echo "$FILE not found in MD5SUMS" >> MISSING_FILES.DMP 687 NOMD5=1 687 688 fi 688 689 set -e 689 690 690 691 if [ ! -f $FILE ] ; then 691 wget $URL1 || wget $URL2 692 elif ! echo "$MD5" | md5sum -c - >/dev/null 2>/dev/null ; then 693 wget -N $URL1 || wget -N $URL2 692 wget $URL1 || wget $URL2 || \ 693 echo "${RED}$FILE not found on the servers${OFF}" 694 echo "$FILE not found on the servers" >> MISSING_FILES.DMP 695 elif [[ "$NOMD5" != "1" ]] && ! echo "$MD5" | md5sum -c - ; then 696 wget -N $URL1 || wget -N $URL2 || \ 697 echo "${RED}$FILE not found on the servers${OFF}" 698 echo "$FILE not found on the servers" >> MISSING_FILES.DMP 694 699 fi 695 700 696 if ! echo "$MD5" | md5sum -c - ; then701 if [[ "$NOMD5" != "1" ]] && ! echo "$MD5" | md5sum -c - ; then 697 702 echo "${RED}$FILE not match MD5SUMS value${OFF}" 698 703 echo "$FILE not match MD5SUMS value" >> MISSING_FILES.DMP
Note:
See TracChangeset
for help on using the changeset viewer.