xbps-src: allow to use install-destdir for pkgs already installed.
This commit is contained in:
parent
a3ec116aeb
commit
4478b5ead3
@ -52,9 +52,11 @@ install_pkg()
|
||||
check_installed_pkg "$pkg"
|
||||
if [ $? -eq 1 -o $? -eq 0 ]; then
|
||||
instver="$($XBPS_PKGDB_CMD version $pkgname)"
|
||||
if [ -n "$instver" ]; then
|
||||
if [ -n "$instver" -a "$install_destdir_target" = "no" ]; then
|
||||
echo "=> $pkgname-$instver already installed."
|
||||
return 0
|
||||
elif [ -n "$instver" -a "$install_destdir_target" = "yes" ]; then
|
||||
echo "=> $pkgname-$instver installed, continuing for DESTDIR installation..."
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user