X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=cgi-bin%2Fsearch_packages.pl;h=c74ffc27689007cb035b47133d18287a4f5ffc15;hb=3d5a2408c84b3197cfb003ef2c3204d9c280b481;hp=0c78978fdef0914ee3bc470d9837fdefa640bc6f;hpb=062e8d549a090da0d2aa21cf2bdcf068bf4010fc;p=deb%2Fpackages.git diff --git a/cgi-bin/search_packages.pl b/cgi-bin/search_packages.pl index 0c78978..c74ffc2 100755 --- a/cgi-bin/search_packages.pl +++ b/cgi-bin/search_packages.pl @@ -159,8 +159,7 @@ unless (@Packages::CGI::fatal_errors) { \&read_src_entry, \%opts ) }; } elsif ($searchon eq 'contents') { require "./search_contents.pl"; - &contents(\$input); - exit; + &contents($input); } else { push @results, @{ do_names_search( $keyword, \%packages, $p_obj, @@ -278,12 +277,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 "