From: Frank Lichtenheld Date: Thu, 12 Apr 2007 21:05:06 +0000 (+0200) Subject: dispatcher: Allow to use 'any' as an architecture name X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=651d6771851fd3218410277158fae740b570cef6;hp=24cd19ddaa3a525f82bf389a3f004744a32a0916;p=deb%2Fpackages.git dispatcher: Allow to use 'any' as an architecture name This will not set the arch parameter since it is essentially a no-op anyway --- diff --git a/cgi-bin/dispatcher.pl b/cgi-bin/dispatcher.pl index 11a1d59..754e9b0 100755 --- a/cgi-bin/dispatcher.pl +++ b/cgi-bin/dispatcher.pl @@ -125,7 +125,7 @@ if (my $path = $input->path_info() || $input->param('PATH_INFO')) { 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 {