Ticket #1685: alfs_downloadmsgbug.patch

File alfs_downloadmsgbug.patch, 1014 bytes (added by Tim Sarbin, 15 years ago)
  • common/libs/func_download_pkgs

     
    6464      echo "$FILE: -- copied from $SRC_ARCHIVE"
    6565      fromARCHIVE=1
    6666    else
    67       echo "${BOLD}${YELLOW}$FILE: not found in ${SRC_ARCHIVE}${OFF}"
    6867      fromARCHIVE=0
    6968      # If the file does not exist yet in /sources download a fresh one
    7069      if [ ! -f $FILE ] ; then
     70        if [[ ! ("$SRC_ARCHIVE" = "") ]] ; then
     71          echo "${BOLD}${YELLOW}$FILE: not found in ${SRC_ARCHIVE} or /sources${OFF}"
     72        else
     73          echo "${BOLD}${YELLOW}$FILE: not found in /sources${OFF}"
     74        fi
    7175        if ! wget $URL1 && ! wget $URL2 ; then
    7276          gs_wrt_message "$FILE not found in the SRC_ARCHIVE or on any server..SKIPPING"
    7377          continue
    7478        fi
     79      else
     80          echo "${BOLD}${YELLOW}$FILE: using cached file in /sources${OFF}"
    7581      fi
    7682    fi
    7783