mirror of
https://github.com/zuno/slackpkgplus
synced 2024-12-25 09:58:47 +01:00
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:
parent
dc8fbc03f1
commit
1d350b8dce
1 changed files with 5 additions and 0 deletions
|
@ -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:./'
|
||||
|
|
Loading…
Reference in a new issue