diff options
Diffstat (limited to 'init_buildsystem')
-rwxr-xr-x | init_buildsystem | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/init_buildsystem b/init_buildsystem index 399ae50..18317c7 100755 --- a/init_buildsystem +++ b/init_buildsystem @@ -171,10 +171,12 @@ preinstall_image() TAR="tar -x" fi # pipe output through perl to print a dot every 1000 lines - if ! $TAR -z --exclude .build --exclude .init_b_cache -f "$BUILD_ROOT/.init_b_cache/rpms/$1" -v > >(perl -e '$|=1; my $done=0; $done++ % 1000 or print "." while <STDIN>; print "\n";') 2>&1 ; then + if ! $TAR -z --exclude .build --exclude .init_b_cache -f "$BUILD_ROOT/.init_b_cache/rpms/$1" -v > >(tee "$BUILD_ROOT/.preinstallimage.unpack" | perl -e '$|=1; my $done=0; $done++ % 1000 or print "." while <STDIN>; print "\n";') 2>&1 ; then echo "unpack failed." + test -e "$BUILD_ROOT/.preinstallimage.unpack" && cat "$BUILD_ROOT/.preinstallimage.unpack" cleanup_and_exit 1 fi + rm -f "$BUILD_ROOT/.preinstallimage.unpack" } preinstall() |