summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-10-16 15:42:19 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-10-16 15:42:19 +0000
commit14c5acc95435e7327a5460c2a2cb5a8363d0d355 (patch)
tree65cd969fcfc90aff4992ad4ba945c54480848a61
parentb46d565f9e4473bba4a6008ee738ae697c55eaf3 (diff)
downloadurpmi-14c5acc95435e7327a5460c2a2cb5a8363d0d355.tar
urpmi-14c5acc95435e7327a5460c2a2cb5a8363d0d355.tar.gz
urpmi-14c5acc95435e7327a5460c2a2cb5a8363d0d355.tar.bz2
urpmi-14c5acc95435e7327a5460c2a2cb5a8363d0d355.tar.xz
urpmi-14c5acc95435e7327a5460c2a2cb5a8363d0d355.zip
make sure we generate dudf reports for transaction errors
Fixes #53690
-rwxr-xr-xurpmi4
1 files changed, 4 insertions, 0 deletions
diff --git a/urpmi b/urpmi
index 97b06882..cbdc99c3 100755
--- a/urpmi
+++ b/urpmi
@@ -673,6 +673,10 @@ my $exit_code = urpm::main_loop::run($urpm, $state,
$force || urpm::msg::ask_yes_or_no("$msg$msg2");
}
},
+ trans_error_summary => sub {
+ my ($_nok, $errors) = @_;
+ dudf_invoke($dudf, "set_error_msg", join("\n", map { "\t$_" } @$errors));
+ },
ask_yes_or_no => sub {
my ($_title, $msg) = @_; # graphical title
my $yesexpr = N("Yy");