From: Ludwig Nussel Date: Fri, 24 Apr 2009 11:18:25 +0000 (+0000) Subject: move space check from init_buildsystem to build script X-Git-Tag: obs_2.0~210 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=125f0affde7b91fe972160a19ae82944232bd218;p=tools%2Fobs-build.git move space check from init_buildsystem to build script --- diff --git a/build b/build index bb2320d..b77cc6e 100755 --- 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 diff --git a/init_buildsystem b/init_buildsystem index a074b55..49c8aff 100755 --- a/init_buildsystem +++ b/init_buildsystem @@ -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