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
1 changed files with 6 additions and 3 deletions
|
@ -125,8 +125,11 @@ xbps_make_binpkg()
|
||||||
cd $destdir || exit 1
|
cd $destdir || exit 1
|
||||||
|
|
||||||
run_rootcmd tar cfjp $XBPS_DESTDIR/$binpkg .
|
run_rootcmd tar cfjp $XBPS_DESTDIR/$binpkg .
|
||||||
[ ! -d $XBPS_PACKAGESDIR ] && mkdir -p $XBPS_PACKAGESDIR
|
if [ $? -eq 0 ]; then
|
||||||
mv -f $XBPS_DESTDIR/$binpkg $XBPS_PACKAGESDIR
|
[ ! -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…
Add table
Add a link
Reference in a new issue