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:./'