summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-06 14:09:11 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-06 14:09:11 +0000
commit8971afc9e643826d4ad832dbc05f4a206ecfdd46 (patch)
tree0237bd144ccfe2eafecfd7ec485bc4d083c56df8
parent28a4c0afd968ed8bd4d69a9880beafde84060d54 (diff)
downloadmgaonline-8971afc9e643826d4ad832dbc05f4a206ecfdd46.tar
mgaonline-8971afc9e643826d4ad832dbc05f4a206ecfdd46.tar.gz
mgaonline-8971afc9e643826d4ad832dbc05f4a206ecfdd46.tar.bz2
mgaonline-8971afc9e643826d4ad832dbc05f4a206ecfdd46.tar.xz
mgaonline-8971afc9e643826d4ad832dbc05f4a206ecfdd46.zip
enable to globally enable/disable new distribution check
-rw-r--r--NEWS1
-rwxr-xr-xmdkapplet3
-rw-r--r--mdkapplet.conf5
3 files changed, 8 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 9e27aad1..d970cfbe 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,5 @@
- mdkapplet
+ o enable to globally enable/disable new distribution check
o "Distro Upgrade" confirmation dialog:
* display a banner
* display an URL link button
diff --git a/mdkapplet b/mdkapplet
index 70a6fba4..0502b9ab 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -331,7 +331,8 @@ sub harvester {
if ($state) {
logIt($state->{log});
$sub_state = $state->{status};
- go2State($new_distro && $local_config{DO_NOT_ASK_FOR_DISTRO_UPGRADE} !~ /^true$/i ?
+ go2State($new_distro && $config{DO_NOT_ASK_FOR_DISTRO_UPGRADE} !~ /^true$/i ?
+ && $local_config{DO_NOT_ASK_FOR_DISTRO_UPGRADE} !~ /^true$/i ?
'new_distribution' : $sub_state);
}
} elsif ($media_manager_pid && $media_manager_pid == $childpid) {
diff --git a/mdkapplet.conf b/mdkapplet.conf
index 0caebfe4..6e093dc3 100644
--- a/mdkapplet.conf
+++ b/mdkapplet.conf
@@ -3,3 +3,8 @@ UPDATE_FREQUENCY=10800
# Initial check will be delayed by (default to 5 minutes):
FIRST_CHECK_DELAY=300000
+
+# Globally enable or disable check for new distribution
+# (in order to offer live distro upgrade):
+# (default is "false", meaning check will be done)
+DO_NOT_ASK_FOR_DISTRO_UPGRADE=false \ No newline at end of file