summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-03 16:49:17 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-03 16:49:17 +0000
commit4ad4fc89cda296901fc6b420b5eb0a5f29bfe3e9 (patch)
treeb90471547f45fd8b6a9bd07d0221a4bc82c82662 /mdkapplet
parent4f623267fb73244decc701e109f24fd63188d6df (diff)
downloadmgaonline-4ad4fc89cda296901fc6b420b5eb0a5f29bfe3e9.tar
mgaonline-4ad4fc89cda296901fc6b420b5eb0a5f29bfe3e9.tar.gz
mgaonline-4ad4fc89cda296901fc6b420b5eb0a5f29bfe3e9.tar.bz2
mgaonline-4ad4fc89cda296901fc6b420b5eb0a5f29bfe3e9.tar.xz
mgaonline-4ad4fc89cda296901fc6b420b5eb0a5f29bfe3e9.zip
(harvester,silentCheck) compute regular updates even if there's a new distro
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet7
1 files changed, 2 insertions, 5 deletions
diff --git a/mdkapplet b/mdkapplet
index fbe9815e..54805611 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -327,7 +327,7 @@ sub harvester {
my ($state) = grep { $_->{code} eq $status } values %comm_codes;
if ($state) {
logIt($state->{log});
- go2State($state->{status});
+ go2State($new_distro_version ? 'new_distribution' : $state->{status});
}
} elsif ($media_manager_pid && $media_manager_pid == $childpid) {
undef $media_manager_pid;
@@ -426,10 +426,7 @@ sub silentCheck() {
my $new_time = time();
if (!$check_time || $new_time - $check_time > $config{DISTRO_CHECK_DELAY}) {
$check_time = $new_time;
- if (is_there_a_new_distributions()) {
- go2State('new_distribution');
- return;
- }
+ is_there_a_new_distributions();
}
return if $mdv_update_pid || $checker_pid;