summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-05-12 18:22:16 +0000
committerThierry Vignaud <tv@mandriva.org>2009-05-12 18:22:16 +0000
commitf3ce71dc59ecbf5a58cb78fd956fee123c98a2fa (patch)
tree6540809c083d697f7bfbc184bf3d2d77ab2fba17 /mdkapplet
parent5208408dad2c1f90dabba2b83c46e2aa0cdd66e9 (diff)
downloadmgaonline-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
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index 18277774..1f37a0d9 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -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();
}