From 390a8c465f8c4c781e61eaa9db447dd792d65ea2 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 6 Jan 2012 19:44:08 +0000 Subject: (already_installed) fix already installed noarch packages are listed twice on x86_64 (mga#4038) --- NEWS | 1 + urpm/select.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 8cef56d0..7ffd67f6 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ o disable dudf support (we've nothing server side) o fix checking available space of mount point (mga#1342) o fix reading unrequested packages list when chrooted + o fix already installed noarch packages are listed twice on x86_64 (mga#4038) Version 6.42 - 05 November 2011 diff --git a/urpm/select.pm b/urpm/select.pm index 133eb274..d6e7737b 100644 --- a/urpm/select.pm +++ b/urpm/select.pm @@ -533,7 +533,7 @@ sub unselected_packages { #- misc functions to help finding ask_unselect and ask_remove elements with their reasons translated. sub already_installed { my ($state) = @_; - map { scalar $_->fullname } values %{$state->{rejected_already_installed} || {}}; + uniq(map { scalar $_->fullname } values %{$state->{rejected_already_installed} || {}}); } sub translate_already_installed { -- cgit v1.2.1