initramfs-tools: fix a logic error in hook-functions.

--HG--
branch : gnome3
This commit is contained in:
Juan RP 2011-03-10 18:03:28 +01:00
parent 6087d7d8de
commit 71350060db
2 changed files with 3 additions and 3 deletions

View file

@ -539,9 +539,9 @@ compare_versions()
local cmpver_cmd local cmpver_cmd
if ! command -v xbps-uhelper.static >/dev/null 2>&1; then if ! command -v xbps-uhelper.static >/dev/null 2>&1; then
cmpver_cmd=xbps-uhelper.static
else
cmpver_cmd=xbps-uhelper cmpver_cmd=xbps-uhelper
else
cmpver_cmd=xbps-uhelper.static
fi fi
${cmpver_cmd} cmpver $curv $minv ${cmpver_cmd} cmpver $curv $minv
if [ $? -eq 0 ] || [ $? -eq 1 ]; then if [ $? -eq 0 ] || [ $? -eq 1 ]; then

View file

@ -1,6 +1,6 @@
# Template file for 'initramfs-tools' # Template file for 'initramfs-tools'
pkgname=initramfs-tools pkgname=initramfs-tools
_localver=0.99.9 # This is the XBPS version _localver=0.99.10 # This is the XBPS version
_distver=0.98.8 # This should match debian version _distver=0.98.8 # This should match debian version
version=${_localver}.${_distver} version=${_localver}.${_distver}
build_style=custom-install build_style=custom-install