summaryrefslogtreecommitdiffstats
path: root/mdkapplet-upgrade-helper
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-21 13:27:37 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-21 13:27:37 +0000
commitd705a4d70e9650322bc695196b89948a2239402e (patch)
tree223b3d1f6f92a22b25105b2d6a67388381c8c156 /mdkapplet-upgrade-helper
parent697f646b182b3e059dacffd7b376fc4d1b2318fd (diff)
downloadmgaonline-d705a4d70e9650322bc695196b89948a2239402e.tar
mgaonline-d705a4d70e9650322bc695196b89948a2239402e.tar.gz
mgaonline-d705a4d70e9650322bc695196b89948a2239402e.tar.bz2
mgaonline-d705a4d70e9650322bc695196b89948a2239402e.tar.xz
mgaonline-d705a4d70e9650322bc695196b89948a2239402e.zip
(upgrade_distro_congratulations) when updates succeeded, offer to reboot
Diffstat (limited to 'mdkapplet-upgrade-helper')
-rwxr-xr-xmdkapplet-upgrade-helper5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdkapplet-upgrade-helper b/mdkapplet-upgrade-helper
index bb8d2d6f..2d58ac4e 100755
--- a/mdkapplet-upgrade-helper
+++ b/mdkapplet-upgrade-helper
@@ -127,11 +127,12 @@ sub upgrade_distro_congratulations() {
line_wrap => 1,
# workaround infamous 6 years old gnome bug #101968:
width => $width - 50),
- create_okcancel($w, N("Ok")),
+ create_okcancel($w, N("Reboot"), N("Cancel")),
]),
);
$w->{ok}->grab_focus;
- $w->main;
+ my $answer = $w->main;
+ any::reboot() if $answer && !$::testing;
}
sub upgrade() {