From: cjwatson <> Date: Mon, 18 Jul 2005 11:13:21 +0000 (-0800) Subject: [project @ 2005-07-18 04:13:21 by cjwatson] X-Git-Tag: release/2.6.0~698 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=49750215310bd85ad68bfb9bd1fcd007c50448b8;p=debbugs.git [project @ 2005-07-18 04:13:21 by cjwatson] Prefer source architecture for src= queries, but allow other architectures if source isn't present for a given package. Fixes handling of multi-binary packages. --- diff --git a/cgi/common.pl b/cgi/common.pl index 5f1185f6..ad9a902a 100644 --- a/cgi/common.pl +++ b/cgi/common.pl @@ -918,7 +918,7 @@ sub getversions { or die "can't open versions index: $!"; } - if (defined $arch) { + if (defined $arch and exists $_versions{$pkg}{$dist}{$arch}) { my $ver = $_versions{$pkg}{$dist}{$arch}; return $ver if defined $ver; return ();