summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2018-09-01 12:35:11 +0200
committer Eric Hameleers <alien@slackware.com>2018-09-01 12:35:11 +0200
commit3921f398ef641c44784ba3336da13a36fe62c0e2 (patch)
tree5b765ec2689750ea83658ef875fd4484fe532235
parent53f746f78bdcb5f34fe7cec052931dd825c5e8b9 (diff)
downloadliveslak-3921f398ef641c44784ba3336da13a36fe62c0e2.tar.gz
liveslak-3921f398ef641c44784ba3336da13a36fe62c0e2.tar.xz
When installing local packages from subdir, use 'upgradepkg'
The old use of 'installpkg' prevented upgrading an already present package while 'upgradepkg --install-new' allows for all options.
-rwxr-xr-xmake_slackware_live.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index 53a94c1..58a7544 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -371,7 +371,8 @@ function install_pkgs() {
if [ "$3" = "local" -a -d ${LIVE_TOOLDIR}/local${DIRSUFFIX}/$1 ]; then
echo "-- Installing local packages from subdir 'local${DIRSUFFIX}/$1'."
- installpkg --terse --root "$2" "local${DIRSUFFIX}/$1/*.t?z"
+ #installpkg --terse --root "$2" "local${DIRSUFFIX}/$1/*.t?z"
+ ROOT="$2" upgradepkg --install-new --reinstall "local${DIRSUFFIX}/$1/*.t?z"
else
# Load package list and (optional) custom repo info:
if [ "$3" = "tagfile" ]; then