summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS2
-rwxr-xr-xgurpmi28
2 files changed, 10 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 9d8ec448..a280d1a0 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,8 @@
(was partially broken, non documented and hopefully unused)
- fix reading descriptions with --env=
- only load LDAP binding if needed (saves a couple MB in rpmdrake)
+- gurpmi:
+ o warn when rebooting is needed after installing packages
Version 6.21 - 13 January 2009
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",