summaryrefslogtreecommitdiffstats
path: root/urpm/select.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-07 14:11:05 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-07 14:11:05 +0000
commit33e56eeb13ba2fe58ee4aa38bc5dc2124888b94a (patch)
tree3fc9674255584e5858435acc6d570ad0b6ce28be /urpm/select.pm
parent9884b05a9a7ebd412b33134e10b1b91ce575e5b5 (diff)
downloadurpmi-33e56eeb13ba2fe58ee4aa38bc5dc2124888b94a.tar
urpmi-33e56eeb13ba2fe58ee4aa38bc5dc2124888b94a.tar.gz
urpmi-33e56eeb13ba2fe58ee4aa38bc5dc2124888b94a.tar.bz2
urpmi-33e56eeb13ba2fe58ee4aa38bc5dc2124888b94a.tar.xz
urpmi-33e56eeb13ba2fe58ee4aa38bc5dc2124888b94a.zip
what was introduced in perl-URPM 3.16 to get "rejected already installed pkgs"
is wrong. Adapt to perl-URPM 3.18 way ($state->{rejected_already_installed}) which ensures we don't break things (eg: superuser--priority-upgrade.t test case)
Diffstat (limited to 'urpm/select.pm')
-rw-r--r--urpm/select.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/urpm/select.pm b/urpm/select.pm
index e9c61fdf..495e81c7 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -527,7 +527,7 @@ sub unselected_packages {
#- misc functions to help finding ask_unselect and ask_remove elements with their reasons translated.
sub already_installed {
my ($state) = @_;
- grep { $state->{rejected}{$_}{installed} } keys %{$state->{rejected} || {}};
+ map { scalar $_->fullname } values %{$state->{rejected_already_installed} || {}};
}
sub translate_already_installed {
@@ -565,7 +565,6 @@ sub translate_why_unselected_one {
} @unsatisfied)),
$rb->{promote} && !$rb->{keep} ? N("trying to promote %s", join(", ", @{$rb->{promote}})) : (),
$rb->{keep} ? N("in order to keep %s", join(", ", @{$rb->{keep}})) : (),
- $rb->{installed} ? "already installed" : (),
);
$fullname . ($s ? " ($s)" : '');
}