- Timestamp:
- 04/01/2022 08:18:15 AM (2 years ago)
- Branches:
- ablfs-more, trunk
- Children:
- 30a444a
- Parents:
- a2917ed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/libs/func_download_pkgs
ra2917ed r8c2b505 4 4 get_sources() { # Download file, write name to MISSING_FILES.DMP if an error 5 5 #----------------------------# 6 7 # Test if the packages must be downloaded 8 [ ! "$GETPKG" = "y" ] && return 9 6 10 local saveIFS=$IFS 7 11 local IFS line URL1 URL2 FILE BOOKMD5 MD5 HAVEMD5 fromARCHIVE WGETPARAM … … 13 17 WGETPARAM+=" --tries ${RETRYDOWNLOADCNT}" 14 18 WGETPARAM+=" --timeout ${DOWNLOADTIMEOUT}" 15 16 # Test if the packages must be downloaded17 [ ! "$GETPKG" = "y" ] && return18 19 19 20 gs_wrt_message(){ … … 27 28 # Generate URLs file 28 29 create_urls 30 31 # Clean up leftovers from preceding attempts 32 >MISSING_FILES.DMP 29 33 30 34 IFS=$'\x0A' # Modify the 'internal field separator' to break on 'LF' only … … 111 115 [ -d ${SRC_ARCHIVE} ] && 112 116 [ -w ${SRC_ARCHIVE} ] && 117 [ ! -f ${SRC_ARCHIVE}/$FILE ] && 113 118 [ "$fromARCHIVE" = "0" ] ; then 114 119 echo "Storing file:<$FILE> in the package archive"
Note:
See TracChangeset
for help on using the changeset viewer.