From 49750215310bd85ad68bfb9bd1fcd007c50448b8 Mon Sep 17 00:00:00 2001 From: cjwatson <> Date: Mon, 18 Jul 2005 03:13:21 -0800 Subject: [PATCH] [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. --- cgi/common.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi/common.pl b/cgi/common.pl index 5f1185f..ad9a902 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 (); -- 2.39.2