Fixed slackpkg search filter

This commit is contained in:
Matteo Rossini 2016-01-17 21:00:30 +01:00
parent e84d428fb1
commit 2cd06ecb47

View file

@ -914,7 +914,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
}' l_dir=${DIR} > $PKGINFOS
else # -- CMD==search
grep ${GREPOPTS} "^${DIR} \([^ ]*${SEARCHSTR}\)\|\(.*/${SEARCHSTR}/\)\|\(.*/SLACKPKGPLUS_${SEARCHSTR}\)" "${TMPDIR}/pkglist" > $PKGINFOS
grep "^$DIR" "${TMPDIR}/pkglist"|grep --color "/SLACKPKGPLUS_$SEARCHSTR/\|/$SEARCHSTR \| [^ /]*$SEARCHSTR[^ /]* " > $PKGINFOS
fi
while read PKGDIR PKGBASENAME PKGVER PKGARCH PKGBUILD PKGFULLNAME PKGPATH PKGEXT ; do