From 53b25da0ba337c9a87ac8a3d95fbfee03b035972 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Mon, 3 Mar 2008 14:58:14 +0100 Subject: [PATCH] [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. --- lib/Packages/DoSearchContents.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}; -- 2.39.2