summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-05-29 07:37:23 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-05-29 07:37:23 +0000
commitfb3f59d63c3ad71769faa517a33e6be05ab56f42 (patch)
tree919c0682b3cb9b80762d74be061336c6ff483f99
parentce597d6a01fda649be99c7fae25a0604bdefa23c (diff)
downloadurpmi-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--NEWS3
-rw-r--r--urpm/select.pm4
2 files changed, 6 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 84cc5790..a2bdb690 100644
--- a/NEWS
+++ b/NEWS
@@ -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};