- Timestamp:
- 05/03/2006 09:34:13 AM (18 years ago)
- Branches:
- 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- afa32da
- Parents:
- 26d25e8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
common/common-functions
r26d25e8 r261eea6 246 246 247 247 248 # =============================#249 wrt_unpack3() { #250 # =============================#248 #----------------------------------# 249 wrt_unpack3() { # 250 #----------------------------------# 251 251 local FILE=$1 252 252 ( … … 302 302 303 303 304 # =============================#305 wrt_run_as_root2() { #306 # =============================#304 #----------------------------------# 305 wrt_run_as_root2() { # 306 #----------------------------------# 307 307 local this_script=$1 308 308 local file=$2 … … 401 401 402 402 #----------------------------------# 403 wrt_report() { #403 wrt_report() { # 404 404 #----------------------------------# 405 405 ( … … 419 419 420 420 #----------------------------# 421 run_make() { 421 run_make() { # 422 422 #----------------------------# 423 423 # Test if make must be run. … … 439 439 440 440 #----------------------------# 441 clean_builddir() { 441 clean_builddir() { # 442 442 #----------------------------# 443 443 # Test if the clean must be done. … … 466 466 467 467 #----------------------------# 468 get_book() { 468 get_book() { # 469 469 #----------------------------# 470 470 cd $JHALFSDIR … … 680 680 MD5=`grep " $FILE" MD5SUMS` 681 681 if [ $? -ne 0 ]; then 682 683 684 685 682 set -e 683 gs_wrt_message "$FILE not found in MD5SUMS" 684 # IMPORTANT:: There is no MD5SUM for this file. 685 HAVEMD5=0 686 686 fi 687 687 … … 701 701 if [ ! -f $FILE ] ; then 702 702 if ! wget $URL1 && ! wget $URL2 ; then 703 704 703 gs_wrt_message "$FILE not found in the SRC_ARCHIVE or on any server..SKIPPING" 704 continue 705 705 fi 706 706 fi … … 711 711 # IF the md5sum does not match the existing files 712 712 if ! echo "$MD5" | md5sum -c - >/dev/null ; then 713 714 713 [[ $fromARCHIVE = "1" ]] && echo "${BOLD}${YELLOW}MD5SUM did not match SRC_ARCHIVE copy${OFF}" 714 [[ $fromARCHIVE = "0" ]] && echo "${BOLD}${YELLOW}MD5SUM did not match REMOTE copy${OFF}" 715 715 # Remove the old file and download a new one 716 717 716 rm -fv $FILE 717 # Force generation of MD5SUM and storage in SRC_ARCHIVE 718 718 fromARCHIVE=0; HAVEMD5=0 719 # Try and retrieve the file 720 # I swap server priority to allow for corruption on the primary site 719 # Try and retrieve the file 721 720 if ! wget -N $URL1 && ! wget -N $URL2 ; then 722 723 724 721 gs_wrt_message "$FILE not found on the servers.. SKIPPING" 722 continue 723 fi 725 724 fi 726 725 fi … … 755 754 echo -e "\n\n${tab_}${RED} One or more files were not retrieved or have a bad MD5SUMS chechsum.\n${tab_} Check ${L_arrow}$BUILDDIR/sources/MISSING_FILES.DMP${R_arrow} for names ${OFF}\n" 756 755 # Do not allow the automatic exection of the Makefile. 757 echo 756 echo "${tab_}${BOLD}${RED}*** ${YELLOW}Automatic execution of the generated makefile has been inhibited. ${RED}***${OFF}${nl_}" 758 757 RUNMAKE=0 759 758 fi
Note:
See TracChangeset
for help on using the changeset viewer.