From 2e1111d6fe6a5663d5c6ebafd8bcb5beccf660fb Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 10 Feb 2009 13:54:19 +0000 Subject: (do_install_3) warn when rebooting is needed after installing packages --- gurpmi2 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gurpmi2') diff --git a/gurpmi2 b/gurpmi2 index 57ad610d..6bb6904c 100755 --- a/gurpmi2 +++ b/gurpmi2 @@ -364,6 +364,14 @@ sub do_install_3 () { change_mainw($vbox); $mainw->set_focus($quit_button); }, + need_restart => sub { + my ($need_restart_formatted) = @_; + my $w = Gtk2::MessageDialog->new($mainw, [qw(modal destroy-with-parent)], 'warning', 'ok', + join("\n", values %$need_restart_formatted) + ); + my $response = $w->run; + $w->destroy; + }, missing_files_summary => sub { my ($error_sources) = @_; $progress_label->set_label(N("Installation failed, some files are missing:\n%s\nYou may want to update your urpmi database", -- cgit v1.2.1