]> git.deb.at Git - deb/packages.git/commitdiff
[UBUNTU] Don't offer *-backports and *-updates for contents search
authorFrank Lichtenheld <frank@lichtenheld.de>
Mon, 3 Mar 2008 13:58:14 +0000 (14:58 +0100)
committerFrank Lichtenheld <frank@lichtenheld.de>
Mon, 3 Mar 2008 13:58:14 +0000 (14:58 +0100)
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

index fd19f0f058e30c620fbef439a65b91162af04e59..b28717f8ce7416e859a42bb97792d730d8018c8b 100644 (file)
@@ -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};