diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-05-29 07:37:23 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-05-29 07:37:23 +0000 |
commit | fb3f59d63c3ad71769faa517a33e6be05ab56f42 (patch) | |
tree | 919c0682b3cb9b80762d74be061336c6ff483f99 | |
parent | ce597d6a01fda649be99c7fae25a0604bdefa23c (diff) | |
download | urpmi-fb3f59d63c3ad71769faa517a33e6be05ab56f42.tar urpmi-fb3f59d63c3ad71769faa517a33e6be05ab56f42.tar.gz urpmi-fb3f59d63c3ad71769faa517a33e6be05ab56f42.tar.bz2 urpmi-fb3f59d63c3ad71769faa517a33e6be05ab56f42.tar.xz urpmi-fb3f59d63c3ad71769faa517a33e6be05ab56f42.zip |
- for rpmdrake
o make translate_why_removed() safe to call (cf bug #28613)
(from trunk)
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | urpm/select.pm | 4 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,6 @@ +- for rpmdrake + o make translate_why_removed() safe to call (cf bug #28613) + Version 4.9.21 - 27 March 2007, by Pascal "Pixel" Rigaux - urpmi diff --git a/urpm/select.pm b/urpm/select.pm index 6252dea6..4b6f90a8 100644 --- a/urpm/select.pm +++ b/urpm/select.pm @@ -418,7 +418,9 @@ sub translate_why_removed { sub translate_why_removed_one { my ($urpm, $state, $fullname) = @_; - my $closure = $state->{rejected}{$fullname}{closure}; + my $closure = $state->{rejected} && $state->{rejected}{$fullname} && $state->{rejected}{$fullname}{closure} + or return $fullname; + my ($from) = keys %$closure; my ($whyk) = keys %{$closure->{$from}}; my $whyv = $closure->{$from}{$whyk}; |