summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rwxr-xr-xmdkapplet6
2 files changed, 6 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 5a85c598..067980e8 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- mdkapplet
o add 2009.1 restricted media on 2009.1 (#50478)
+ o perform initial check after 3 seconds when using --testing
Version 2.77 - 17 April 2009, Thierry Vignaud
diff --git a/mdkapplet b/mdkapplet
index ef58567e..18277774 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -51,7 +51,11 @@ my ($menu, $timeout, $network_timeout, $state_global, $sub_state);
my %config = getVarsFromSh('/etc/sysconfig/mdkapplet');
$config{UPDATE_FREQUENCY} ||= 3*60*60; # default to 3hours
-$config{FIRST_CHECK_DELAY} ||= 5 * 60 * 1000; # default to 5 minutes
+if ($::testing) {
+ $config{FIRST_CHECK_DELAY} = 3 * 1000; # 3seconds
+} else {
+ $config{FIRST_CHECK_DELAY} ||= 5 * 60 * 1000; # default to 5 minutes
+}
$config{DISTRO_CHECK_DELAY} ||= 60*60*24; # default : one day
my %state = (