mirror of
https://github.com/zuno/slackpkgplus
synced 2024-12-27 09:58:34 +01:00
Small fix in search and in priority manager
This commit is contained in:
parent
ef1e7bacb5
commit
3098138f3f
1 changed files with 2 additions and 2 deletions
|
@ -441,7 +441,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
||||||
#
|
#
|
||||||
PKGDATA=""
|
PKGDATA=""
|
||||||
LINEIDX=""
|
LINEIDX=""
|
||||||
PKGINFOS=$(grep -n "^${DIR} " ${TMPDIR}/pkglist | grep -w "${PAT}" | grep -m 1 "^[[:digit:]]\+:${DIR} ${ARGUMENT}")
|
PKGINFOS=$(grep -n "^${DIR} " ${TMPDIR}/pkglist | grep -w "${PAT}" | grep -m 1 "^[[:digit:]]\+:${DIR} ${ARGUMENT} ")
|
||||||
|
|
||||||
if [ ! -z "$PKGINFOS" ] ; then
|
if [ ! -z "$PKGINFOS" ] ; then
|
||||||
LINEIDX=$(echo "$PKGINFOS" | cut -f1 -d":")
|
LINEIDX=$(echo "$PKGINFOS" | cut -f1 -d":")
|
||||||
|
@ -613,7 +613,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
|
||||||
# First is the package already installed?
|
# First is the package already installed?
|
||||||
# Amazing what a little sleep will do
|
# Amazing what a little sleep will do
|
||||||
# exclusion is so much nicer :)
|
# exclusion is so much nicer :)
|
||||||
INSTPKG=$(ls -1 $ROOT/var/log/packages | grep -e "^${BASENAME}-[^-]\+-[^-]\+-[^-]\+")
|
INSTPKG=$(ls -1 $ROOT/var/log/packages | grep -e "^${BASENAME}-[^-]\+-[^-]\+-[^-]\+$")
|
||||||
#INSTPKG=$(ls -1 $ROOT/var/log/packages | grep -e "^${BASENAME}-[^-]\+-\(${ARCH}\|fw\|noarch\)-[^-]\+")
|
#INSTPKG=$(ls -1 $ROOT/var/log/packages | grep -e "^${BASENAME}-[^-]\+-\(${ARCH}\|fw\|noarch\)-[^-]\+")
|
||||||
|
|
||||||
# INSTPKG is local version
|
# INSTPKG is local version
|
||||||
|
|
Loading…
Reference in a new issue