From 453cd28ba606559921f114a2efce593c510c8e84 Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Fri, 10 Feb 2006 22:18:31 +0000 Subject: [PATCH] Disable multi-page results while that is inefficient and we don't show more than 100 results ever anyway --- cgi-bin/search_packages.pl | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/cgi-bin/search_packages.pl b/cgi-bin/search_packages.pl index 0c78978..8e26b11 100755 --- a/cgi-bin/search_packages.pl +++ b/cgi-bin/search_packages.pl @@ -278,12 +278,13 @@ if (@results) { my @pkgs = sort(keys %pkgs, keys %provided_by); if ($opts{format} eq 'html') { - my ($start, $end) = multipageheader( $input, scalar @pkgs, \%opts ); - my $count = 0; + #my ($start, $end) = multipageheader( $input, scalar @pkgs, \%opts ); + print "

Found ".(scalar @pkgs)." matching packages,"; + #my $count = 0; foreach my $pkg (@pkgs) { - $count++; - next if $count < $start or $count > $end; + #$count++; + #next if $count < $start or $count > $end; printf "

Package %s

\n", $pkg; print "