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) --- NEWS | 1 + Rpmdrake/pkg.pm | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/NEWS b/NEWS index 71d282e6..cbf98c48 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,4 @@ +- tell the user to "restart system" when needed (needs urpmi-5.14) - rpmdrake: o add tooltips to pull down menus & to search entry 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