]> git.deb.at Git - deb/packages.git/blobdiff - cgi-bin/dispatcher.pl
syncarchive: add oldstable backports and volatile
[deb/packages.git] / cgi-bin / dispatcher.pl
index d67f86d5687808c8df9199bf6cb84012eb9dacc3..1f876dedce031f46296d80312df7f5fc64a4581a 100755 (executable)
@@ -119,13 +119,13 @@ if (my $path = $input->path_info() || $input->param('PATH_INFO')) {
        }
 
        my %SUITES = map { $_ => 1 } @SUITES;
-       my %SUITES_ALIAS = ( woody => 'oldstable',
-                            sarge => 'stable',
-                            etch => 'testing',
+       my %SUITES_ALIAS = ( sarge => 'oldstable',
+                            etch => 'stable',
+                            lenny => 'testing',
                             sid => 'unstable', );
        my %SECTIONS = map { $_ => 1 } @SECTIONS;
        my %ARCHIVES = map { $_ => 1 } @ARCHIVES;
-       my %ARCHITECTURES = map { $_ => 1 } (@ARCHITECTURES, 'all');
+       my %ARCHITECTURES = map { $_ => 1 } (@ARCHITECTURES, 'all', 'any');
        my %PRIORITIES = map { $_ => 1 } @PRIORITIES;
        my %params_set;
        sub set_param_once {
@@ -158,7 +158,8 @@ if (my $path = $input->path_info() || $input->param('PATH_INFO')) {
            } elsif (!$need_pkg && ($_ eq 'source')) {
                set_param_once( $input, \%params_set, 'source', 1);
            } elsif ($ARCHITECTURES{$_}) {
-               set_param_once( $input, \%params_set, 'arch', $_);
+               set_param_once( $input, \%params_set, 'arch', $_)
+                   unless $_ eq 'any';
            } elsif ($PRIORITIES{$_}) {
                set_param_once( $input, \%params_set, 'priority', $_);
            } else {
@@ -260,7 +261,7 @@ my $template = new Packages::Template( $TEMPLATEDIR, $opts{format}, { lang => $o
 
 unless (-e "$TEMPLATEDIR/$opts{format}/${what_to_do}.tmpl") {
     fatal_error( "requested format not available for this document",
-                "405 requested format not available");
+                "406 requested format not available");
 }
 
 my (%html_header, %page_content);