X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=functions-update;h=d602572ac84d02bcaf62b091b1624bfad96a671f;hb=a934432259aa5d5b687fe52731d6baf13c9675dc;hp=cb7a7e81e915637c604d88d6da5f4701c35ea4c9;hpb=aa229d2908422fce286bbd65710e31b086c8a2a2;p=hvlinux.git diff --git a/functions-update b/functions-update index cb7a7e8..d602572 100644 --- a/functions-update +++ b/functions-update @@ -18,7 +18,7 @@ HV_PATCHES_URL="${HV_BASE_URL}/patches" LFS_PACKAGES_URL="ftp://ftp.osuosl.org/pub/lfs/lfs-packages/conglomeration" HV_PACKAGES_URL="${HV_BASE_URL}/packages" -SOURCEFORGE_URL="http://internap.dl.sourceforge.net/sourceforge" +SOURCEFORGE_URL="http://cdnetworks-us-1.dl.sourceforge.net" GNOME_URL="http://ftp.gnome.org/pub/gnome/sources" GNU_URL="http://ftp.gnu.org/pub/gnu" TETEX_URL="http://www.tug.org/ftp/tex-archive/systems/unix/teTeX" @@ -45,6 +45,10 @@ static_fetch_patches_list() # slash is absolutely necessary for this to work. update_packages_init() { + # Execute a return statement instead of exit, to be able to continue with + # downloading other packages + export RCMD_NO_EXIT=1 + # First create log directory if it does not exists. if [ ! -d ${LFS_LOG_DIR} ]; then install -m755 -d ${LFS_LOG_DIR} || exit 1 @@ -182,6 +186,7 @@ detect_file_not_found() # HTTP: will return error code 404. # FTP: will say "File not found" if grep "404" ${WGET_LOG_FILE} 1> /dev/null 2>&1; then + echo NOTFOUND return 0 elif grep "No such file" ${WGET_LOG_FILE} 1> /dev/null 2>&1; then return 0 @@ -206,7 +211,7 @@ static_getpkg() if [ -z "${ARCH_EXT}" ]; then # List of default archive extensions to try - ARCH_EXT="tar.bz2 tar.gz tgz .tar.Z" + ARCH_EXT="tar.bz2 tar.gz tgz tar.Z" fi for arch_ext in ${ARCH_EXT}; do