]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Download can't be done in chroot.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 19 Mar 2009 16:52:07 +0000 (17:52 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 19 Mar 2009 16:52:07 +0000 (17:52 +0100)
tools/make-include

index 57a531bb7e31e6808366053d65b5a519d1e53fc0..9f25595f1d73b0d61215726835d47caf6202fb71 100644 (file)
@@ -172,9 +172,9 @@ lfsmakecommoncheck()
                exiterror "No such file or directory: $BASEDIR/lfs/$1"
        fi
 
-       unset NAME VERSION
-       eval $(pkg_info $1)
-       logger "Building $*"
+       local FILENAME=$1
+       eval $(pkg_info $FILENAME)
+       logger "Building $FILENAME"
        
        shift 1
 
@@ -233,6 +233,11 @@ lfsmakecommoncheck()
                fi
        fi
 
+       cd $BASEDIR/lfs && make -s -f $FILENAME MACHINE=$MACHINE LFS_BASEDIR=$BASEDIR MESSAGE="$1\t " download  >> $LOGFILE 2>&1
+       if [ $? -ne 0 ]; then
+               exiterror "Download error in $1"
+       fi
+
        distcc_reload &
 
        return 0        # pass all!