fail if icecream create-env failed (bnc#493550)
authorLudwig Nussel <ludwig.nussel@suse.de>
Tue, 14 Apr 2009 11:32:43 +0000 (11:32 +0000)
committerLudwig Nussel <ludwig.nussel@suse.de>
Tue, 14 Apr 2009 11:32:43 +0000 (11:32 +0000)
build

diff --git a/build b/build
index 0c96a31..15cfa57 100755 (executable)
--- a/build
+++ b/build
@@ -295,7 +295,7 @@ setupicecream()
          false
          return
        fi
-       chroot $BUILD_ROOT bash -c "cd /var/run/icecream; $createenv"
+       chroot $BUILD_ROOT bash -c "cd /var/run/icecream; $createenv" || cleanup_and_exit 1
        icecc_vers=(`shopt -s nullglob; echo $BUILD_ROOT/var/run/icecream/*.tar.{bz2,gz}`)
        icecc_vers=${icecc_vers//$BUILD_ROOT/}
     else