summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xmdkapplet4
2 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 6ac93eed..122620ea 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
- mdkapplet
o add an "upgrade system" in the menu when a new distro is
available
+ o ask for confirmation before performing distro upgrade
Version 2.48 - 2 October 2008
diff --git a/mdkapplet b/mdkapplet
index 71cab637..7dc9807f 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -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));