diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-03 13:55:59 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-03 13:55:59 +0000 |
commit | e4fd7e4e4c46b4922e5c1f62b5837c7dfd0b8b55 (patch) | |
tree | a15353c0f14d5bdb7bcab8b3fe0d0c8275b47ebe /mdkapplet | |
parent | f51c6ab4e153bdf5e0164e334c7b69b37c79e3a6 (diff) | |
download | mgaonline-e4fd7e4e4c46b4922e5c1f62b5837c7dfd0b8b55.tar mgaonline-e4fd7e4e4c46b4922e5c1f62b5837c7dfd0b8b55.tar.gz mgaonline-e4fd7e4e4c46b4922e5c1f62b5837c7dfd0b8b55.tar.bz2 mgaonline-e4fd7e4e4c46b4922e5c1f62b5837c7dfd0b8b55.tar.xz mgaonline-e4fd7e4e4c46b4922e5c1f62b5837c7dfd0b8b55.zip |
(upgrade) ask for confirmation before performing distro upgrade
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -349,6 +349,10 @@ sub restart_applet() { } sub upgrade() { + return if !(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), + )); logIt("backuping urpmi configuration"); cp_af("$root/etc/urpmi/urpmi.cfg", "$ENV{HOME}/urpmi.cfg.backup." . int(rand 100000)); |