tazpkg rev 955

modules/search: allow search file with dash at start: tazpkg -sf "-spi"
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 22 00:02:54 2017 +0200 (2017-12-22)
parents ecb60a87e3e8
children 88d62319f89e
files modules/search
line diff
     1.1 --- a/modules/search	Fri Nov 03 16:10:39 2017 -0400
     1.2 +++ b/modules/search	Fri Dec 22 00:02:54 2017 +0200
     1.3 @@ -174,7 +174,7 @@
     1.4  			# name and the full path to the file(s).
     1.5  			for pkg in $(awk -F$'\t' '{print $1}' $PKGS_DB/installed.info); do
     1.6  				FL="$INSTALLED/$pkg/files.list"
     1.7 -				if grep -qs "$2" "$FL"; then
     1.8 +				if grep -qs -e "$2" "$FL"; then
     1.9  					newline
    1.10  					emsg "<c 33>$(_ 'Package %s:' "$pkg")</c>"
    1.11  					awk -vtmp="$TMPLIST" -vfile="$2" -vcfile="$(colorize 32 $2)" '