binpkg.sh: only continue building the binpkg if the packing was ok.
--HG-- extra : convert_revision : 4a568775cf91bdde816f2b2f7e12ee0f95a06828
This commit is contained in:
parent
4130596474
commit
b303ff28a6
|
@ -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 $?
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user