From: Frank Lichtenheld Date: Thu, 23 Feb 2006 13:22:35 +0000 (+0000) Subject: Packages, that were both real and virtual were listed twice X-Git-Tag: switch-to-templates~51 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=6768e397b3e37540925dd1febca677e1a6ca1bb4;p=deb%2Fpackages.git Packages, that were both real and virtual were listed twice --- 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,