From dd9f98daf94d68c800bb08d831627a4641c8de4c Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Mon, 20 Feb 2006 15:35:04 +0000 Subject: [PATCH] Actually search on filenames --- lib/Packages/DoSearchContents.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2