]> git.deb.at Git - deb/packages.git/commitdiff
Add an additional debug output to track $too_many_hits better
authorFrank Lichtenheld <frank@lichtenheld.de>
Mon, 20 Feb 2006 14:42:33 +0000 (14:42 +0000)
committerFrank Lichtenheld <frank@lichtenheld.de>
Mon, 20 Feb 2006 14:42:33 +0000 (14:42 +0000)
lib/Packages/Search.pm

index 9418f63e0c3037b14cd9ce079c34403f28427ed4..c0555e2bb302b0dfdd241e742c9370ccae205cb4 100644 (file)
@@ -413,6 +413,7 @@ sub do_names_search {
     $postfixes->seq( $key, $prefixes, R_CURSOR );
     while (index($key, $keyword) >= 0) {
        if ($prefixes =~ /^\001(\d+)/o) {
+           debug( "$key has too many hits", 2 );
            $too_many_hits += $1;
        } else {
            foreach (split /\000/o, $prefixes) {