summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-03-21 17:32:58 +0000
committerThierry Vignaud <tv@mandriva.org>2008-03-21 17:32:58 +0000
commit8a9b6d0f0f469136e4a5911a48c0f025ceda11d6 (patch)
tree62bdbbf4ff870a42333f3476712f580e1abe39fe
parentab0ed03bfd8723f106ba8b02e75a02cbfb3b646e (diff)
downloadmgaonline-8a9b6d0f0f469136e4a5911a48c0f025ceda11d6.tar
mgaonline-8a9b6d0f0f469136e4a5911a48c0f025ceda11d6.tar.gz
mgaonline-8a9b6d0f0f469136e4a5911a48c0f025ceda11d6.tar.bz2
mgaonline-8a9b6d0f0f469136e4a5911a48c0f025ceda11d6.tar.xz
mgaonline-8a9b6d0f0f469136e4a5911a48c0f025ceda11d6.zip
check for network just before first check
-rw-r--r--NEWS1
-rwxr-xr-xmdkapplet7
2 files changed, 7 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 0c8bac28..dcf537eb 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
- mdkapplet:
o do not check for network while checking for updates
o do not skip first RPM check (change made in 2.16 in march 2007)
+ o check for network just before first check
Version 2.38 - 20 March 2008, Thierry Vignaud
diff --git a/mdkapplet b/mdkapplet
index 68df2e0a..369c9979 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -223,7 +223,12 @@ shouldStart() or die "$localfile should be set to TRUE: please use --force or -f
go2State('delayed');
gtkflush();
-Glib::Timeout->add($config{FIRST_CHECK_DELAY}, sub { checkUpdates(); 0 });
+Glib::Timeout->add($config{FIRST_CHECK_DELAY}, sub {
+ # perform a test after initial delay:
+ checkNetwork();
+ checkUpdates();
+ 0;
+ });
setup_cyclic_check();