Changeset 9d55d85 for common


Ignore:
Timestamp:
03/12/2010 03:46:12 AM (14 years ago)
Author:
Thomas Pegg <thomasp@…>
Branches:
2.3, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
11b4d99
Parents:
de63126
Message:

Enhance messages produced by jhalfs when files do not exist in either /sources or SRC_ARCHIVE, also in cases when SRC_ARCHIVE is not set. Thanks to Tim Sarbin for the patch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_download_pkgs

    rde63126 r9d55d85  
    7272      fromARCHIVE=1
    7373    else
    74       echo "${BOLD}${YELLOW}$FILE: not found in ${SRC_ARCHIVE}${OFF}"
    7574      fromARCHIVE=0
    7675      # If the file does not exist yet in /sources download a fresh one
    7776      if [ ! -f $FILE ] ; then
     77        if [[ ! ("$SRC_ARCHIVE" = "") ]] ; then
     78          echo "${BOLD}${YELLOW}$FILE: not found in ${SRC_ARCHIVE} or /sources${OFF}"
     79        else
     80          echo "${BOLD}${YELLOW}$FILE: not found in /sources${OFF}"
     81        fi
    7882        if ! wget $URL1 $WGETPARAM && ! wget $URL2 $WGETPARAM ; then
    7983          gs_wrt_message "$FILE not found in the SRC_ARCHIVE or on any server..SKIPPING"
    8084          continue
    8185        fi
     86        else
     87          echo "${BOLD}${YELLOW}$FILE: using cached file in /sources${OFF}"
    8288      fi
    8389    fi
Note: See TracChangeset for help on using the changeset viewer.