From 1d350b8dce79d835718fa84ef70a6fbd42a9293e Mon Sep 17 00:00:00 2001 From: Matteo Rossini Date: Sat, 8 Jan 2022 17:07:42 +0100 Subject: [PATCH] Accept the syntax "packagename," that means "exact packagenane only" slackpkg install libreoffice, will look for libreoffice only, without match libreoffice-dict and all other libreoffice-* slackpkg by default match grep -w packagename pkglist --- src/slackpkgplus.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/slackpkgplus.sh b/src/slackpkgplus.sh index af31664..6bf9cec 100755 --- a/src/slackpkgplus.sh +++ b/src/slackpkgplus.sh @@ -1079,6 +1079,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then # function givepriority() { local DIR + local ORIARGUMENT=$ARGUMENT local ARGUMENT=$1 local PKGDATA local CPRIORITY @@ -1091,6 +1092,9 @@ if [ "$SLACKPKGPLUS" = "on" ];then unset LINEIDX unset PKGINFOS + [[ "${ORIARGUMENT%,*},*" == "${ORIARGUMENT}" ]]&&[[ "${ARGUMENT}" != "${ORIARGUMENT%,*}" ]]&&return + ARGUMENT="${ARGUMENT%,*}" + if [ -z "$TOPROCESS" ];then case "$CMD" in upgrade-all) TOPROCESS=$(comm -1 -2 ${TMPDIR}/lpkg ${TMPDIR}/dpkg | comm -1 -2 - ${TMPDIR}/spkg|wc -l);; @@ -2186,6 +2190,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then PRIORITYLIST_SX="" for pref in $INPUTLIST ; do + pref=${pref/%,/,*} PRIORITY_FILTER_RULE="" # You can specify 'slackpkg install .' that is an alias of 'slackpkg install dir:./'