From b303ff28a6ee6beaacfdf1d0dac6182e462ba9c9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 22 Dec 2008 06:43:41 +0100 Subject: [PATCH] binpkg.sh: only continue building the binpkg if the packing was ok. --HG-- extra : convert_revision : 4a568775cf91bdde816f2b2f7e12ee0f95a06828 --- shutils/binpkg.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/shutils/binpkg.sh b/shutils/binpkg.sh index 5ad73b993a9..0fcfa32b188 100644 --- a/shutils/binpkg.sh +++ b/shutils/binpkg.sh @@ -125,8 +125,11 @@ xbps_make_binpkg() cd $destdir || exit 1 run_rootcmd tar cfjp $XBPS_DESTDIR/$binpkg . - [ ! -d $XBPS_PACKAGESDIR ] && mkdir -p $XBPS_PACKAGESDIR - mv -f $XBPS_DESTDIR/$binpkg $XBPS_PACKAGESDIR + if [ $? -eq 0 ]; then + [ ! -d $XBPS_PACKAGESDIR ] && mkdir -p $XBPS_PACKAGESDIR + mv -f $XBPS_DESTDIR/$binpkg $XBPS_PACKAGESDIR + echo "=> Built package: $binpkg" + fi - echo "=> Built package: $binpkg" + return $? }