From fc0802bf5f8e6af67f835e68a3c932a5d63c829f Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Thu, 16 Mar 2017 13:36:47 +0000 Subject: [PATCH] Add instructions to copy to SRC_ARCHIVE in func_install_blfs, so that files are kept in host repo, and not downloaded again, should a new build be started. --- common/libs/func_install_blfs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/common/libs/func_install_blfs b/common/libs/func_install_blfs index 042a912..c762413 100644 --- a/common/libs/func_install_blfs +++ b/common/libs/func_install_blfs @@ -132,11 +132,19 @@ mv scripts $BUILDDIR$BLFS_ROOT # Generates a list containing download and copying instructions for tarballs echo -e '#!/bin/bash\nset -e\n' > $BUILDDIR$BLFS_ROOT/download_script -sed -n -e '/PACKAGE=/,/^fi/p' \ +sed -n -e '/PACKAGE=/,/^fi/{/^fi/a\ +cp $PACKAGE $SRC_ARCHIVE +p}' \ -e '/|[ ]*md5sum/p' \ - -e '/PACKAGE1=/,/^fi/p' \ - -e '/PATCH=/,/^fi/p' \ - -e '/URL=/,/^fi/p' \ + -e '/PACKAGE1=/,/^fi/{/^fi/a\ +cp $PACKAGE1 $SRC_ARCHIVE +p}' \ + -e '/PATCH=/,/^fi/{/^fi/a\ +cp $PACKAGE1 $SRC_ARCHIVE +p}' \ + -e '/URL=/,/^fi/{/^fi/a\ +cp $PACKAGE1 $SRC_ARCHIVE +p}' \ $BUILDDIR$BLFS_ROOT/scripts/* >> $BUILDDIR$BLFS_ROOT/download_script chmod u+x $BUILDDIR$BLFS_ROOT/download_script