From 6768e397b3e37540925dd1febca677e1a6ca1bb4 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Thu, 23 Feb 2006 13:22:35 +0000 Subject: [PATCH] Packages, that were both real and virtual were listed twice --- lib/Packages/DoSearch.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Packages/DoSearch.pm b/lib/Packages/DoSearch.pm index f55f2cf..866bbc0 100644 --- a/lib/Packages/DoSearch.pm +++ b/lib/Packages/DoSearch.pm @@ -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, -- 2.39.2