From 2f8887610ba802aa8fca5c6686595893dbb4d5cb Mon Sep 17 00:00:00 2001 From: Patrick Volkerding Date: Wed, 5 Mar 2025 09:41:45 +0100 Subject: [PATCH] Also restrict install-new to slackware, next to slackware64 and patches Thanks to Patrick Volkerding --- src/slackpkgplus.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/slackpkgplus.sh b/src/slackpkgplus.sh index 033fbb8..0cbef9b 100755 --- a/src/slackpkgplus.sh +++ b/src/slackpkgplus.sh @@ -1328,11 +1328,11 @@ if [ "$SLACKPKGPLUS" = "on" ];then fi fi # When "install-new" is used, there can be same named packages included - # in the list from other repositories, only slackware64 and patches should - # be used for "install-new" This happens if packages are Addded, then - # later Deleted in ChangeLog.txt. + # in the list from other repositories, only slackware64, slackware, and + # patches should be used for "install-new" This happens if packages are + # Added, then later Deleted in ChangeLog.txt. if [[ $CMD == install-new ]]; then - if [[ ${PKGDATA[0]#*:} != slackware64 ]] && [[ ${PKGDATA[0]#*:} != patches ]]; then + if [[ ${PKGDATA[0]#*:} != slackware64 ]] && [[ ${PKGDATA[0]#*:} != slackware ]] && [[ ${PKGDATA[0]#*:} != patches ]]; then NAME="" FULLNAME="" fi