[Secure-testing-commits] r56634 - bin

Raphael Geissert geissert at moszumanska.debian.org
Thu Oct 12 07:16:13 UTC 2017


Author: geissert
Date: 2017-10-12 07:16:13 +0000 (Thu, 12 Oct 2017)
New Revision: 56634

Modified:
   bin/check-new-issues
Log:
Also apply the display limit to wnpp results

Searching for 'in', 'ip', and other generic queries doesn't make much
sense, but let's fix one thing at the time.


Modified: bin/check-new-issues
===================================================================
--- bin/check-new-issues	2017-10-12 06:50:05 UTC (rev 56633)
+++ bin/check-new-issues	2017-10-12 07:16:13 UTC (rev 56634)
@@ -462,10 +462,16 @@
 
 		foreach my $p (split /\s+/, $prog) {
 			search_embed($p);
-			for my $we (search_wnpp($p)) {
-				print "$we: $wnpp{$we}\n";
-				wnpp_to_history($we);
+			my @wr = search_wnpp($p);
+			if (scalar @wr > $auto_display_limit) {
+				print scalar @wr, " results from searching '$prog' in WNPP\n";
 			}
+			else {
+				for my $we (@wr) {
+					print "$we: $wnpp{$we}\n";
+					wnpp_to_history($we);
+				}
+			}
 		}
 	}
 	if ( $file =~ /^(?:index|default|login|search|admin)\.(?:php3?|asp|cgi|pl)$/i ) {




More information about the Secure-testing-commits mailing list