From 88b3a6f1b08ec97bb753d2d944e3d5ba05ac141b Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 17 Mar 2008 17:33:53 +0000 Subject: tell the user to "restart system" when needed (needs urpmi-5.14) --- Rpmdrake/pkg.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Rpmdrake/pkg.pm') diff --git a/Rpmdrake/pkg.pm b/Rpmdrake/pkg.pm index 1c4af94c..c52e4d9c 100644 --- a/Rpmdrake/pkg.pm +++ b/Rpmdrake/pkg.pm @@ -752,6 +752,11 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-( $canceled and goto return_with_exit_code; $gurpm->invalidate_cancel_forever; }, + need_restart => sub { + my ($need_restart_formatted) = @_; + # FIXME: offer to restart the system + interactive_msg(N("Warning"), join("\n", values %$need_restart_formatted), scroll => 1); + }, trans_error_summary => sub { my ($nok, $errors) = @_; interactive_msg( -- cgit v1.2.1