From: Adrian Schröter Date: Mon, 20 Apr 2009 13:32:03 +0000 (+0000) Subject: create same output layout in kvm/xen mode with new extractbuild as with X-Git-Tag: obs_2.0~221 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef206f239ca6e18ead9250500da077efc77ee3fe;p=platform%2Fupstream%2Fbuild.git create same output layout in kvm/xen mode with new extractbuild as with plain chroot build. --- diff --git a/build b/build index 544a960..a1b3fe7 100755 --- a/build +++ b/build @@ -1086,6 +1086,18 @@ for SPECFILE in "${SPECFILES[@]}" ; do cd $BUILD_ROOT/.build.packages || cleanup_and_exit 1 echo "build: extracting built packages..." extractbuild --disk "$VM_IMAGE" --input "$VM_SWAP" --skip 512 -v + # create same layout as with plain chroot + if test "$BUILDTYPE" = spec ; then + mkdir -p SRPMS RPMS + for i in *src.rpm; do mv "$i" SRPMS/; done + for i in *.rpm; do mv "$i" RPMS/; done + elif test "$BUILDTYPE" = dsc ; then + mkdir -p DEBS + for i in *.deb; do mv "$i" DEBS/; done + else + mkdir -p KIWI + find . -type f | while read i in *; do mv "$i" KIWI/; done + fi cleanup_and_exit ${BUILDSTATUS#BUILDSTATUS} ;; *)