X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=lib%2FPackages%2FDoIndex.pm;fp=lib%2FPackages%2FDoIndex.pm;h=0ed874a24ce31a4dcf5865a3036c0cd25330fe58;hp=064a18ad2aa4b386c336dccc3d01af144ca25a0e;hb=2ec757bb58907b15c43548be5601d4f2b8c7caac;hpb=411dd86a5f305fcce69912b47f84dc16914d2da1 diff --git a/lib/Packages/DoIndex.pm b/lib/Packages/DoIndex.pm index 064a18a..0ed874a 100644 --- a/lib/Packages/DoIndex.pm +++ b/lib/Packages/DoIndex.pm @@ -44,9 +44,12 @@ sub send_file { } my $wwwdir = "$TOPDIR/www"; - my $path = "$opts->{suite}[0]/"; + my $path = ""; + $path .= "source/" if $opts->{source}; + $path .= "$opts->{suite}[0]/"; $path .= "$opts->{archive}[0]/" if @{$opts->{archive}} == 1; $path .= "$opts->{subsection}[0]/" if @{$opts->{subsection}}; + $path .= "$opts->{priority}[0]/" if @{$opts->{priority}}; # we don't have translated index pages for subsections yet $opts->{lang} = 'en' if @{$opts->{subsection}} or $file eq 'allpackages'; $path .= "$file.$opts->{lang}.$opts->{format}"; @@ -71,21 +74,6 @@ sub send_file { $path, $! ) ); } } - - %$html_header = ( title => _g('Error'), - lang => $opts->{lang}, - print_title => 1, - print_search_field => 'packages', - search_field_values => { - keywords => _g('search for a package'), - searchon => 'default', - arch => 'any', - suite => 'all', - section => 'all', - exact => 1, - debug => $Packages::CGI::debug, - }, - ); } 1;