]> git.deb.at Git - deb/packages.git/commitdiff
Packages, that were both real and virtual were listed twice
authorFrank Lichtenheld <frank@lichtenheld.de>
Thu, 23 Feb 2006 13:22:35 +0000 (13:22 +0000)
committerFrank Lichtenheld <frank@lichtenheld.de>
Thu, 23 Feb 2006 13:22:35 +0000 (13:22 +0000)
lib/Packages/DoSearch.pm

index f55f2cf7e05d28c29788fe6abe96b6b06d724ba4..866bbc08f6169d1a1fe7453c1c3c1293550deff9 100644 (file)
@@ -180,7 +180,8 @@ sub do_search {
                }
            }
 
-           my @pkgs = sort(keys %pkgs, keys %provided_by);
+           my %uniq_pkgs = map { $_ => 1 } (keys %pkgs, keys %provided_by);
+           my @pkgs = sort keys %uniq_pkgs;
            $$page_content .= print_packages( \%pkgs, \@pkgs, $opts, $keyword,
                                              \&print_package, \%provided_by,
                                              \%archives, \%sect, \%subsect,