Rework how $revision is used. Works much better in all cases.
$version is not modified anymore. --HG-- extra : convert_revision : a83408f47e22db2f34cd33d6d47eb2f045ae2758
This commit is contained in:
parent
e0d52c9d11
commit
75bd88afc6
10 changed files with 106 additions and 60 deletions
|
@ -50,7 +50,7 @@ xbps_make_binpkg()
|
|||
#
|
||||
xbps_make_binpkg_real()
|
||||
{
|
||||
local binpkg pkgdir arch use_sudo
|
||||
local binpkg pkgdir arch use_sudo lver
|
||||
|
||||
if [ ! -d ${DESTDIR} ]; then
|
||||
echo "$pkgname: unexistent destdir... skipping!"
|
||||
|
@ -71,7 +71,12 @@ xbps_make_binpkg_real()
|
|||
use_sudo=yes
|
||||
fi
|
||||
|
||||
binpkg=$pkgname-$version.$arch.xbps
|
||||
if [ -n "$revision" ]; then
|
||||
lver="${version}_${revision}"
|
||||
else
|
||||
lver="${version}"
|
||||
fi
|
||||
binpkg=$pkgname-$lver.$arch.xbps
|
||||
pkgdir=$XBPS_PACKAGESDIR/$arch
|
||||
|
||||
if [ -x ./INSTALL ]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue