]> git.deb.at Git - deb/packages.git/blobdiff - cgi-bin/dispatcher.pl
print_deps: If a virtual package is only provided by a few packages,
[deb/packages.git] / cgi-bin / dispatcher.pl
index f967fd379a2fc704201428d307e93b6c53b41100..ea7c3e2fd6a988582be92e13b5b18fdd590de7b0 100755 (executable)
@@ -28,6 +28,7 @@ use Packages::HTML ();
 use Packages::Sections;
 
 use Packages::DoSearch;
+use Packages::DoSearchContents;
 use Packages::DoShow;
 use Packages::DoDownload;
 use Packages::DoFilelist;
@@ -57,7 +58,7 @@ $Packages::CGI::debug = $debug;
 
 my $what_to_do = 'show';
 my $source = 0;
-if (my $path = $input->path_info()) {
+if (my $path = $input->path_info() || $input->param('PATH_INFO')) {
     my @components = grep { $_ } map { lc $_ } split /\/+/, $path;
 
     debug( "components[0]=$components[0]", 2 );
@@ -179,6 +180,11 @@ if ((($opts{searchon} eq 'names') && $opts{source}) ||
     $opts{source} = 1;
     $opts{searchon} = 'names',
     $opts{searchon_form} = 'sourcenames';
+} else {
+    $opts{searchon_form} = $opts{searchon};
+}
+if ($opts{searchon} eq 'contents' or $opts{searchon} eq 'filenames') {
+    $what_to_do = 'search_contents';
 }
 
 my $pet1 = new Benchmark;