diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-05-12 18:22:16 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-05-12 18:22:16 +0000 |
commit | f3ce71dc59ecbf5a58cb78fd956fee123c98a2fa (patch) | |
tree | 6540809c083d697f7bfbc184bf3d2d77ab2fba17 | |
parent | 5208408dad2c1f90dabba2b83c46e2aa0cdd66e9 (diff) | |
download | mgaonline-f3ce71dc59ecbf5a58cb78fd956fee123c98a2fa.tar mgaonline-f3ce71dc59ecbf5a58cb78fd956fee123c98a2fa.tar.gz mgaonline-f3ce71dc59ecbf5a58cb78fd956fee123c98a2fa.tar.bz2 mgaonline-f3ce71dc59ecbf5a58cb78fd956fee123c98a2fa.tar.xz mgaonline-f3ce71dc59ecbf5a58cb78fd956fee123c98a2fa.zip |
(silentCheck) only drop cached result if we are going to compute it
again so that we remember that a new distro exists when checking for
updates (distro check is less frequent) (#50535) (#50535)
(harvester) move "prevent reporting new distro after distro there
-rw-r--r-- | NEWS | 2 | ||||
-rwxr-xr-x | mdkapplet | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,7 @@ - mdkapplet o add 2009.1 restricted media on 2009.1 (#50478) + o remember a new distro exists when checking for updates (distro + check is less frequent) (#50535) o perform initial check after 3 seconds when using --testing - mdkapplet-restricted-helper o prevent having to cancel several time (#48999) @@ -345,6 +345,8 @@ sub harvester { my $status = $? >> 8; if ($mdv_update_pid && $mdv_update_pid == $childpid) { undef $mdv_update_pid; + # make sure to not report new distro after distro upgrade: + undef $new_distro; $schedule_checks = 1; } elsif ($checker_pid && $checker_pid == $childpid) { undef $checker_pid; @@ -464,8 +466,8 @@ sub checker_exit { sub silentCheck() { state $check_time; my $new_time = time(); - undef $new_distro; if (!$check_time || $new_time - $check_time > $config{DISTRO_CHECK_DELAY}) { + undef $new_distro; $check_time = $new_time; is_there_a_new_distributions(); } |