diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-02-10 10:55:06 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-02-10 10:55:06 +0000 |
commit | 354e2a6c879276b4e1fc3dc8032eb53bca6a9569 (patch) | |
tree | 3dc1e08abef8a03b9a2c567d40e7322c5bcb3cd8 | |
parent | 1ae1ef40f30c9b045dead45ab90e03387a4f9bce (diff) | |
download | rpmdrake-354e2a6c879276b4e1fc3dc8032eb53bca6a9569.tar rpmdrake-354e2a6c879276b4e1fc3dc8032eb53bca6a9569.tar.gz rpmdrake-354e2a6c879276b4e1fc3dc8032eb53bca6a9569.tar.bz2 rpmdrake-354e2a6c879276b4e1fc3dc8032eb53bca6a9569.tar.xz rpmdrake-354e2a6c879276b4e1fc3dc8032eb53bca6a9569.zip |
(perform_installation) implement 'need_restart' so that we warn when rebooting
is needed after installing packages
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | Rpmdrake/pkg.pm | 7 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,6 @@ +- MandrivaUpdate: + o warn when rebooting is needed after installing packages + Version 5.6 - 9 February 2008, Thierry Vignaud - edit-urpm-sources: diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index a06422d9..217c1f2e 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -723,7 +723,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( }; my $exit_code = - urpm::main_loop::run($urpm, $state, undef, undef, $requested, + urpm::main_loop::run($urpm, $state, 1, undef, $requested, { completed => sub { # explicitly destroy the progress window when it's over; we may @@ -804,6 +804,11 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( scroll => 1, ); }, + need_restart => sub { + my ($need_restart_formatted) = @_; + interactive_msg(N("Warning"), + join("\n\n", values %$need_restart_formatted)); + }, success_summary => sub { if (!($done || @to_remove)) { interactive_msg(N("Error"), |