From: Frank Lichtenheld Date: Sun, 3 Jun 2007 08:24:20 +0000 (+0200) Subject: lib/Packages/DoShow.pm: Fix source package retrieval X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=c736d0c5e2bda819d02049de1fcdf07047c305b1;p=deb%2Fpackages.git lib/Packages/DoShow.pm: Fix source package retrieval Some binary packages are build from official Debian sources but have no version in the Debian archive (e.g. libc0.1). Fix searching the source package for those. Rather hackish solution, needs cleanup. --- diff --git a/lib/Packages/DoShow.pm b/lib/Packages/DoShow.pm index e141588..bd0dc21 100644 --- a/lib/Packages/DoShow.pm +++ b/lib/Packages/DoShow.pm @@ -111,6 +111,8 @@ sub do_show { debug( "find source package: source=$source", 1) if DEBUG; my $src_data = $sources_all{"$archive $suite $source"}; + #FIXME: should be $main_archive or similar, not hardcoded "us" + $src_data = $sources_all{"us $suite $source"} unless $src_data; $page->add_src_data( $source, $src_data ) if $src_data;