aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-02-13 23:06:48 +0000
committerThierry Vignaud <tv@mandriva.org>2009-02-13 23:06:48 +0000
commitf9bf44d0d1e46824984f390222d1a5b8c960496c (patch)
tree082583847174247789da14228fe2a666bb898738
parent6449b90bcfadffd842cf0c27a877f5f94d6c49ec (diff)
downloadrpmdrake-f9bf44d0d1e46824984f390222d1a5b8c960496c.tar
rpmdrake-f9bf44d0d1e46824984f390222d1a5b8c960496c.tar.gz
rpmdrake-f9bf44d0d1e46824984f390222d1a5b8c960496c.tar.bz2
rpmdrake-f9bf44d0d1e46824984f390222d1a5b8c960496c.tar.xz
rpmdrake-f9bf44d0d1e46824984f390222d1a5b8c960496c.zip
(already_installed_or_not_installable) really do not show empty
dialogs (r252829 was incomplete)
-rw-r--r--Rpmdrake/pkg.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm
index 8982046e..8d0c34b4 100644
--- a/Rpmdrake/pkg.pm
+++ b/Rpmdrake/pkg.pm
@@ -837,8 +837,9 @@ 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));
+ my $msg = join("\n", @$msg1, @$msg2);
+ return if !$msg; # workaround missing state
+ interactive_msg(N("Error"), $msg);
},
},
);