summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-02-25 12:21:01 +0000
committerThierry Vignaud <tv@mandriva.org>2008-02-25 12:21:01 +0000
commit4c7d748edf03fb206adaca596f2e188393d1bd93 (patch)
tree4d9d275ed84c1357cb9402f52697d4905e9dd064
parent082a2550f00d0d21e63983944be159c412f05f88 (diff)
downloadurpmi-4c7d748edf03fb206adaca596f2e188393d1bd93.tar
urpmi-4c7d748edf03fb206adaca596f2e188393d1bd93.tar.gz
urpmi-4c7d748edf03fb206adaca596f2e188393d1bd93.tar.bz2
urpmi-4c7d748edf03fb206adaca596f2e188393d1bd93.tar.xz
urpmi-4c7d748edf03fb206adaca596f2e188393d1bd93.zip
deffine 'message' callback
-rwxr-xr-xurpmi4
1 files changed, 4 insertions, 0 deletions
diff --git a/urpmi b/urpmi
index 9adeee8a..624cf440 100755
--- a/urpmi
+++ b/urpmi
@@ -648,6 +648,10 @@ my $exit_code = urpm::main_loop::run($urpm, $state,
my $yesexpr = N("Yy");
$force || message_input_($msg, boolean => 1) =~ /[$yesexpr]/;
},
+ message => sub {
+ my ($_title, $msg) = @_; # graphical title
+ print $msg;
+ }
});
unless ($env || $options{nolock}) {