builddep_funcs.sh: match 0 or 1 for satisfied deps, 255 equals to -1.

--HG--
extra : convert_revision : 84c67be32bb250a828b8cd16fa0e3b4ee88a737a
This commit is contained in:
Juan RP 2009-03-19 00:24:59 +01:00
parent 5e1e539cf6
commit 209e19ce55

View file

@ -166,7 +166,7 @@ check_installed_pkg()
iver="$($XBPS_REGPKGDB_CMD version $pkgname)"
if [ -n "$iver" ]; then
xbps-cmpver $pkgname-$iver $pkgname-$reqver
[ $? -ge 0 ] && return 0
[ $? -eq 0 -o $? -eq 1] && return 0
fi
return 1