From 651d6771851fd3218410277158fae740b570cef6 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Thu, 12 Apr 2007 23:05:06 +0200 Subject: [PATCH] dispatcher: Allow to use 'any' as an architecture name This will not set the arch parameter since it is essentially a no-op anyway --- cgi-bin/dispatcher.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 { -- 2.39.2