X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=cgi-bin%2Fsearch_packages.pl;h=c74ffc27689007cb035b47133d18287a4f5ffc15;hp=35729156a5011cba138fb90c3f01997fdf75bdac;hb=bbe90f9136f133811370f0d3c58a96c7ee2dc795;hpb=dc9512b1309f4c8c6bd1171b543183e8ac8b2115 diff --git a/cgi-bin/search_packages.pl b/cgi-bin/search_packages.pl index 3572915..c74ffc2 100755 --- a/cgi-bin/search_packages.pl +++ b/cgi-bin/search_packages.pl @@ -113,7 +113,7 @@ my %params = Packages::Search::parse_params( $input, \%params_def, \%opts ); #XXX: Don't use alternative output formats yet $format = 'html'; if ($format eq 'html') { - print $input->header; + print $input->header( -charset => 'utf-8' ); } if ($params{errors}{keywords}) { @@ -157,6 +157,9 @@ unless (@Packages::CGI::fatal_errors) { push @results, @{ do_names_search( $keyword, \%sources, $sp_obj, \&read_src_entry, \%opts ) }; + } elsif ($searchon eq 'contents') { + require "./search_contents.pl"; + &contents($input); } else { push @results, @{ do_names_search( $keyword, \%packages, $p_obj, @@ -274,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 "