From 54380e502003b677c0a74eb68efc1df5c6237271 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Thu, 16 Mar 2017 12:45:11 +0000 Subject: [PATCH] Allows to retrieve package from SRC_ARCHIVE, in case it is not already there and is in archive. This should not happen in normal operation, but may happen in func_install_blfs --- BLFS/xsl/scripts.xsl | 35 ++++++++++++----------------------- 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/BLFS/xsl/scripts.xsl b/BLFS/xsl/scripts.xsl index 7a92c7c..a3f3efa 100644 --- a/BLFS/xsl/scripts.xsl +++ b/BLFS/xsl/scripts.xsl @@ -228,48 +228,38 @@ cd $UNPACKDIR if [[ ! -f $ - ]] ; then - + + else - wget -T 30 -t 5 + wget -T 30 -t 5 || - wget -T 30 -t 5 + wget -T 30 -t 5 || - wget -T 30 -t 5 ${FTP_SERVER}svn/ + wget -T 30 -t 5 ${FTP_SERVER}svn/ /$ - - + $SRC_ARCHIVE--> + fi fi @@ -283,8 +273,7 @@ fi - -[[ "$SRC_DIR" != "$BUILD_DIR" ]] && ln -sf $SRC_DIR/$ + [[ "$SRC_DIR" != "$BUILD_DIR" ]] && ln -sf $SRC_DIR/$ $BUILD_DIR