From: Jeroen van Wolffelaar Date: Mon, 20 Feb 2006 15:35:04 +0000 (+0000) Subject: Actually search on filenames X-Git-Tag: switch-to-templates~98 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=dd9f98daf94d68c800bb08d831627a4641c8de4c;p=deb%2Fpackages.git Actually search on filenames --- diff --git a/lib/Packages/DoSearchContents.pm b/lib/Packages/DoSearchContents.pm index b1290f2..f66ba87 100644 --- a/lib/Packages/DoSearchContents.pm +++ b/lib/Packages/DoSearchContents.pm @@ -64,7 +64,7 @@ sub do_search_contents { or die "Failed opening reverse DB: $!"; if ($ffn) { - open FILENAMES, '-|', 'fgrep', '--', "$DBDIR/contents/filenames_$suite.txt" + open FILENAMES, '-|', 'fgrep', '--', "$kw", "$DBDIR/contents/filenames_$suite.txt" or die "Failed opening filename table: $!"; while () { chomp; @@ -152,6 +152,7 @@ sub searchfile last if ($$nres)++ > 100; } +# FIXME: use too_many_hits return $$nres<100; }