xbps-src: fix properly refusing to install installed pkgs.
--HG-- extra : convert_revision : e8013bdb452c482331b19bed2199c58fb79f43fc
This commit is contained in:
parent
1c3bae7282
commit
0194df5512
1 changed files with 5 additions and 3 deletions
|
@ -54,9 +54,11 @@ install_pkg()
|
|||
. $XBPS_SHUTILSDIR/builddep_funcs.sh
|
||||
check_installed_pkg "$pkg"
|
||||
if [ $? -eq 1 -o $? -eq 0 ]; then
|
||||
fullpkg="$pkgname-$($XBPS_PKGDB_CMD version $pkgname)"
|
||||
msg_warn "$fullpkg is already installed, remove or reinstall it."
|
||||
exit 0
|
||||
instver="$($XBPS_PKGDB_CMD version $pkgname)"
|
||||
if [ -n "$instver" ]; then
|
||||
msg_warn "$pkgname-$instver is already installed, remove or reinstall it."
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue