move space check from init_buildsystem to build script
authorLudwig Nussel <ludwig.nussel@suse.de>
Fri, 24 Apr 2009 11:18:25 +0000 (11:18 +0000)
committerLudwig Nussel <ludwig.nussel@suse.de>
Fri, 24 Apr 2009 11:18:25 +0000 (11:18 +0000)
build
init_buildsystem

diff --git a/build b/build
index bb2320d..b77cc6e 100755 (executable)
--- a/build
+++ b/build
@@ -1109,6 +1109,11 @@ for SPECFILE in "${SPECFILES[@]}" ; do
         set -- init_buildsystem "${definesnstuff[@]}" "${repos[@]}" $CLEAN_BUILD $USEUSEDFORBUILD $CREATE_BUILD_BINARIES $RPMLIST "$MYSRCDIR/$SPECFILE" $ADDITIONAL_PACKS
        echo "$* ..."
        "$@" || cleanup_and_exit 1
+       if df $BUILD_ROOT 2>/dev/null | grep -q "100%"; then
+           df -h $BUILD_ROOT
+           echo "build does not work on a completely full filesystem"
+           cleanup_and_exit 1
+       fi
        mount -n -tproc none $BUILD_ROOT/proc || true
        mount -n -tdevpts none $BUILD_ROOT/dev/pts
         if [ -d "$OLD_PACKAGES" ]; then
index a074b55..49c8aff 100755 (executable)
@@ -823,10 +823,4 @@ rm -f $BUILD_IS_RUNNING
 
 rm -f $TMPFILE
 
-if df $BUILD_ROOT 2>/dev/null | grep -q "100%"; then
-    df -h $BUILD_ROOT
-    echo "build does not work on a completely full filesystem"
-    cleanup_and_exit 1
-fi
-
 cleanup_and_exit 0