From: Frank Lichtenheld Date: Mon, 3 Mar 2008 13:58:14 +0000 (+0100) Subject: [UBUNTU] Don't offer *-backports and *-updates for contents search X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=53b25da0ba337c9a87ac8a3d95fbfee03b035972;p=deb%2Fpackages.git [UBUNTU] Don't offer *-backports and *-updates for contents search These don't have contents available so don't confuse the user by giving him links we know won't work. --- diff --git a/lib/Packages/DoSearchContents.pm b/lib/Packages/DoSearchContents.pm index fd19f0f..b28717f 100644 --- a/lib/Packages/DoSearchContents.pm +++ b/lib/Packages/DoSearchContents.pm @@ -117,7 +117,7 @@ sub do_search_contents { $page_content->{suite} = $suite; $page_content->{archive} = $archive; $page_content->{all_architectures} = \@all_archs; - $page_content->{all_suites} = \@SUITES; + $page_content->{all_suites} = [ grep { $_ !~ /-(updates|backports)$/ } @SUITES ]; $page_content->{mode} = $mode; $page_content->{search_architectures} = $opts->{arch}; $page_content->{search_keywords} = $opts->{keywords};