From: Michael Tremer Date: Fri, 5 Jul 2024 10:24:15 +0000 (+0000) Subject: make.sh: Move download and check to lfsmake2 and out of the common check X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=860da0ea625b7dd6ba03b19fe0a3e2187fc4fb3a;p=people%2Fms%2Fipfire-2.x.git make.sh: Move download and check to lfsmake2 and out of the common check Signed-off-by: Michael Tremer --- diff --git a/make.sh b/make.sh index e263abbe7..acf99bc3e 100755 --- 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}"