summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-05-12 17:59:44 +0000
committerThierry Vignaud <tv@mandriva.org>2009-05-12 17:59:44 +0000
commitbad8ea10b1859bb6c05f963f6bdc9d2ca8486658 (patch)
tree22dafa0b3c52aadc789d06aa1d3a71b53d04f340 /mdkapplet
parent11efedddc5d3869053633d321f4191d52e96ba1e (diff)
downloadmgaonline-bad8ea10b1859bb6c05f963f6bdc9d2ca8486658.tar
mgaonline-bad8ea10b1859bb6c05f963f6bdc9d2ca8486658.tar.gz
mgaonline-bad8ea10b1859bb6c05f963f6bdc9d2ca8486658.tar.bz2
mgaonline-bad8ea10b1859bb6c05f963f6bdc9d2ca8486658.tar.xz
mgaonline-bad8ea10b1859bb6c05f963f6bdc9d2ca8486658.zip
perform initial check after 3 seconds when using --testing
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet6
1 files changed, 5 insertions, 1 deletions
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 = (