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
This commit is contained in:
Matteo Rossini 2022-01-08 17:07:42 +01:00
parent dc8fbc03f1
commit 1d350b8dce

View file

@ -1079,6 +1079,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
# #
function givepriority() { function givepriority() {
local DIR local DIR
local ORIARGUMENT=$ARGUMENT
local ARGUMENT=$1 local ARGUMENT=$1
local PKGDATA local PKGDATA
local CPRIORITY local CPRIORITY
@ -1091,6 +1092,9 @@ if [ "$SLACKPKGPLUS" = "on" ];then
unset LINEIDX unset LINEIDX
unset PKGINFOS unset PKGINFOS
[[ "${ORIARGUMENT%,*},*" == "${ORIARGUMENT}" ]]&&[[ "${ARGUMENT}" != "${ORIARGUMENT%,*}" ]]&&return
ARGUMENT="${ARGUMENT%,*}"
if [ -z "$TOPROCESS" ];then if [ -z "$TOPROCESS" ];then
case "$CMD" in case "$CMD" in
upgrade-all) TOPROCESS=$(comm -1 -2 ${TMPDIR}/lpkg ${TMPDIR}/dpkg | comm -1 -2 - ${TMPDIR}/spkg|wc -l);; 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="" PRIORITYLIST_SX=""
for pref in $INPUTLIST ; do for pref in $INPUTLIST ; do
pref=${pref/%,/,*}
PRIORITY_FILTER_RULE="" PRIORITY_FILTER_RULE=""
# You can specify 'slackpkg install .' that is an alias of 'slackpkg install dir:./' # You can specify 'slackpkg install .' that is an alias of 'slackpkg install dir:./'