summaryrefslogtreecommitdiffstats
path: root/urpmi
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-03-17 17:20:02 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-03-17 17:20:02 +0000
commitf0bc8483bcb43e955862a375161e99658dce49b1 (patch)
tree276202f7f8763d68db149d541d1c10a4af6b79c8 /urpmi
parent969efed0bf6ffea584f378ae89ec28a89e02254f (diff)
downloadurpmi-f0bc8483bcb43e955862a375161e99658dce49b1.tar
urpmi-f0bc8483bcb43e955862a375161e99658dce49b1.tar.gz
urpmi-f0bc8483bcb43e955862a375161e99658dce49b1.tar.bz2
urpmi-f0bc8483bcb43e955862a375161e99658dce49b1.tar.xz
urpmi-f0bc8483bcb43e955862a375161e99658dce49b1.zip
- urpmi:
o tell the user to "restart system" when it is needed
Diffstat (limited to 'urpmi')
-rwxr-xr-xurpmi4
1 files changed, 4 insertions, 0 deletions
diff --git a/urpmi b/urpmi
index 9768304c..9229240a 100755
--- a/urpmi
+++ b/urpmi
@@ -666,6 +666,10 @@ my $exit_code = urpm::main_loop::run($urpm, $state,
my $yesexpr = N("Yy");
$force || message_input_($msg, boolean => 1) =~ /[$yesexpr]/;
},
+ need_restart => sub {
+ my ($need_restart_formatted) = @_;
+ print "$_\n" foreach values %$need_restart_formatted;
+ },
message => sub {
my ($_title, $msg) = @_; # graphical title
print $msg;