]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
make.sh: Move download and check to lfsmake2 and out of the common check
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 5 Jul 2024 10:24:15 +0000 (10:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Jul 2024 15:39:44 +0000 (15:39 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index e263abbe78090cd9fe01d03674abc710cef4c105..acf99bc3ea560efa1442f354bb4acdc7d780cce1 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -682,18 +682,6 @@ lfsmakecommoncheck() {
 
        echo -ne "`date -u '+%b %e %T'`: Building $* " >> $LOGFILE
 
-       cd $BASEDIR/lfs && make -s -f $* LFS_BASEDIR=$BASEDIR BUILD_ARCH="${BUILD_ARCH}" \
-               MESSAGE="$1\t " download  >> $LOGFILE 2>&1
-       if [ $? -ne 0 ]; then
-               exiterror "Download error in $1"
-       fi
-
-       cd $BASEDIR/lfs && make -s -f $* LFS_BASEDIR=$BASEDIR BUILD_ARCH="${BUILD_ARCH}" \
-               MESSAGE="$1\t b2sum" b2  >> $LOGFILE 2>&1
-       if [ $? -ne 0 ]; then
-               exiterror "BLAKE2 checksum error in $1, check file in cache or signature"
-       fi
-
        return 0        # pass all!
 }
 
@@ -828,6 +816,11 @@ lfsmake2() {
        lfsmakecommoncheck "${pkg}"
        [ $? == 1 ] && return 0
 
+       # Download source outside of the toolchain
+       if ! run_command --quiet "${pkg}" download b2sum; then
+               exiterror "Downloading ${pkg}"
+       fi
+
        # Run install on the package
        if ! run_command --chroot "${pkg}" install; then
                exiterror "Building ${pkg}"