diff options
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -351,11 +351,16 @@ sub restart_applet() { exec($0, '--auto-update'); } -sub upgrade() { - return if !(ugtk2::ask_yesorno(N("A new stable distribution has been released"), +sub confirm_upgrade() { + my $bool = ugtk2::ask_yesorno(N("A new stable distribution has been released"), N("A new stable distribution has been released."), N("Do you want to upgrade to the '\%s' distribution?", $new_distro_version), - )); + ); + $bool; +} + +sub upgrade() { + return if !confirm_upgrade(); logIt("backuping urpmi configuration"); cp_af("$root/etc/urpmi/urpmi.cfg", "$ENV{HOME}/urpmi.cfg.backup." . int(rand 100000)); |