From 3098138f3fa5f150132775ef116e98ed94b3e235 Mon Sep 17 00:00:00 2001 From: Matteo Rossini Date: Sun, 20 Dec 2015 19:41:24 +0100 Subject: [PATCH] Small fix in search and in priority manager --- src/slackpkgplus.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slackpkgplus.sh b/src/slackpkgplus.sh index 9b131e0..78b5f02 100755 --- a/src/slackpkgplus.sh +++ b/src/slackpkgplus.sh @@ -441,7 +441,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then # PKGDATA="" 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 LINEIDX=$(echo "$PKGINFOS" | cut -f1 -d":") @@ -613,7 +613,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then # First is the package already installed? # Amazing what a little sleep will do # 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 is local version