aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-02-13 22:52:23 +0000
committerThierry Vignaud <tv@mandriva.org>2009-02-13 22:52:23 +0000
commit4cc4765294d094cd0f0707fbc47d4b61d96e432b (patch)
tree45c1de130415dadeda92a5891090d0e6d5b43d04
parent0bd5c2e9b7925455bc0e8b6ca9a06c9e7515511b (diff)
downloadrpmdrake-4cc4765294d094cd0f0707fbc47d4b61d96e432b.tar
rpmdrake-4cc4765294d094cd0f0707fbc47d4b61d96e432b.tar.gz
rpmdrake-4cc4765294d094cd0f0707fbc47d4b61d96e432b.tar.bz2
rpmdrake-4cc4765294d094cd0f0707fbc47d4b61d96e432b.tar.xz
rpmdrake-4cc4765294d094cd0f0707fbc47d4b61d96e432b.zip
(already_installed_or_not_installable) do not show empty dialogs
rationale: due to some bugs in urpmi, we cannot always keep the state and thus urpm::select::translate_already_installed() results in us displaying empty dialogs sometimes
-rw-r--r--Rpmdrake/pkg.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index edef6254..b076d8b2 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -834,6 +834,7 @@ you may now inspect some in order to take actions:"),
},
already_installed_or_not_installable => sub {
my ($msg1, $msg2) = @_;
+ return if !($msg1 || $msg2); # workaround missing state
interactive_msg(N("Error"), join("\n", @$msg1, @$msg2));
},
},