Ignore:
Timestamp:
05/01/2006 09:20:29 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
8de111f
Parents:
aa901e7
Message:

Fixed a few bugs (I think)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/common-functions

    raa901e7 r19528f8  
    488488    if [ -d ${PROGNAME}-$LFSVRS ] ; then
    489489      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 ; then
     490      if LC_ALL=C svn up | grep -q At && test -d $JHALFSDIR/${PROGNAME}-commands && \
     491      test -f $JHALFSDIR/packages ; then
    492492        echo -ne "done\n"
    493493        # Set the canonical book version
     
    633633#----------------------------#
    634634  local saveIFS=$IFS
    635   local IFS line URL1 URL2 FILE MD5
     635  local IFS line URL1 URL2 FILE MD5 NOMD5
    636636
    637637  # Test if the packages must be downloaded
     
    675675         [ -f ${SRC_ARCHIVE}/$FILE ]; then
    676676        cp ${SRC_ARCHIVE}/$FILE .
    677         echo "$FILE: -- copied from $SRC_ARCHIVE"
     677        echo "$FILE: -- copied from $SRC_ARCHIVE" && continue
    678678      fi
    679679
     
    685685        echo "${RED}$FILE not found in MD5SUMS${OFF}"
    686686        echo "$FILE not found in MD5SUMS" >> MISSING_FILES.DMP
     687        NOMD5=1
    687688      fi
    688689      set -e
    689690
    690691      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
    694699      fi
    695700
    696       if ! echo "$MD5" | md5sum -c - ; then
     701      if [[ "$NOMD5" != "1" ]] && ! echo "$MD5" | md5sum -c - ; then
    697702        echo "${RED}$FILE not match MD5SUMS value${OFF}"
    698703        echo "$FILE not match MD5SUMS value" >> MISSING_FILES.DMP
Note: See TracChangeset for help on using the changeset viewer.