diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-02-10 13:54:19 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-02-10 13:54:19 +0000 |
commit | 2e1111d6fe6a5663d5c6ebafd8bcb5beccf660fb (patch) | |
tree | 3c1cbf4c8e3924939d2b05d58b0dfd0aff97a6be /gurpmi2 | |
parent | 8026ff19e24847787bbfc5f876dc6a53e044a993 (diff) | |
download | urpmi-2e1111d6fe6a5663d5c6ebafd8bcb5beccf660fb.tar urpmi-2e1111d6fe6a5663d5c6ebafd8bcb5beccf660fb.tar.gz urpmi-2e1111d6fe6a5663d5c6ebafd8bcb5beccf660fb.tar.bz2 urpmi-2e1111d6fe6a5663d5c6ebafd8bcb5beccf660fb.tar.xz urpmi-2e1111d6fe6a5663d5c6ebafd8bcb5beccf660fb.zip |
(do_install_3) warn when rebooting is needed after installing packages
Diffstat (limited to 'gurpmi2')
-rwxr-xr-x | gurpmi2 | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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", |