binpkg.sh: only continue building the binpkg if the packing was ok.

--HG--
extra : convert_revision : 4a568775cf91bdde816f2b2f7e12ee0f95a06828
This commit is contained in:
Juan RP 2008-12-22 06:43:41 +01:00
parent 4130596474
commit b303ff28a6
1 changed files with 6 additions and 3 deletions

View File

@ -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 $?
}