xbps-src: fix properly refusing to install installed pkgs.
--HG-- extra : convert_revision : e8013bdb452c482331b19bed2199c58fb79f43fc
This commit is contained in:
@@ -54,9 +54,11 @@ install_pkg()
|
|||||||
. $XBPS_SHUTILSDIR/builddep_funcs.sh
|
. $XBPS_SHUTILSDIR/builddep_funcs.sh
|
||||||
check_installed_pkg "$pkg"
|
check_installed_pkg "$pkg"
|
||||||
if [ $? -eq 1 -o $? -eq 0 ]; then
|
if [ $? -eq 1 -o $? -eq 0 ]; then
|
||||||
fullpkg="$pkgname-$($XBPS_PKGDB_CMD version $pkgname)"
|
instver="$($XBPS_PKGDB_CMD version $pkgname)"
|
||||||
msg_warn "$fullpkg is already installed, remove or reinstall it."
|
if [ -n "$instver" ]; then
|
||||||
exit 0
|
msg_warn "$pkgname-$instver is already installed, remove or reinstall it."
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user