From 3921f398ef641c44784ba3336da13a36fe62c0e2 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sat, 1 Sep 2018 12:35:11 +0200 Subject: 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. --- make_slackware_live.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3