From 657564e1d5f16bf3a9fecd8163b1c396f151fb09 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Thu, 26 Jun 2008 14:01:01 +0000 Subject: [PATCH] remove .build.packages before mounting the vm image --- build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build b/build index cff2519..3e297fe 100755 --- a/build +++ b/build @@ -464,6 +464,8 @@ mkdir_build_root() cleanup_and_exit 1 fi fi + + rm -rf "$BUILD_ROOT"/.build.packages } #### main #### @@ -798,8 +800,6 @@ echo test "$BUILD_ARCH" = all && BUILD_ARCH= -rm -rf $BUILD_ROOT/.build.packages - for SPECFILE in "${SPECFILES[@]}" ; do SRCDIR="${SPECFILE%/*}" @@ -972,6 +972,7 @@ for SPECFILE in "${SPECFILES[@]}" ; do BUILDSTATUS0) mkdir -p $BUILD_ROOT/.build.packages cd $BUILD_ROOT/.build.packages || cleanup_and_exit 1 + echo "extracting built packages..." dd if=$XENSWAP bs=512 skip=1 | cpio --extract --no-absolute-filenames -v cleanup_and_exit 0 ;; @@ -1212,6 +1213,7 @@ if test -n "$CREATE_BASELIBS" -a -d "$BUILD_ROOT/$TOPDIR/RPMS" ; then fi if test -n "$RUNNING_IN_XEN" -a -n "$XENSWAP"; then + echo "saving built packages..." $BUILD_DIR/extractbuild "$XENSWAP" || cleanup_and_exit 1 fi -- 2.7.4