summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-11-10 16:28:14 +0000
committerThierry Vignaud <tv@mandriva.org>2009-11-10 16:28:14 +0000
commit49eff993613b307c4fb3371ac895cab97444c9ea (patch)
treedd50a141c7df3d18883c26efce7aa753649bc4ab /mdkapplet
parentc526aebacbfbe403c0303d8de0004e1810f9da34 (diff)
downloadmgaonline-49eff993613b307c4fb3371ac895cab97444c9ea.tar
mgaonline-49eff993613b307c4fb3371ac895cab97444c9ea.tar.gz
mgaonline-49eff993613b307c4fb3371ac895cab97444c9ea.tar.bz2
mgaonline-49eff993613b307c4fb3371ac895cab97444c9ea.tar.xz
mgaonline-49eff993613b307c4fb3371ac895cab97444c9ea.zip
(harvester) warn about new distro or no more supported distro only
after all updates were applied
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet17
1 files changed, 10 insertions, 7 deletions
diff --git a/mdkapplet b/mdkapplet
index 1070f52d..6af9a19c 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -386,18 +386,21 @@ sub harvester {
if ($state) {
log::explanations($state->{log});
$sub_state = $state->{status};
- if ($no_more_supported) {
+ if ($sub_state eq 'locked') {
+ $locked_count++;
+ $sub_state = 'loop_locked' if $locked_count > 10;
+ } else {
+ $locked_count = 0;
+ }
+ # busy critical delayed disabled disconnected locked loop_locked new_distribution no_enabled_medium no_enterprise_update_medium no_more_supported no_update_medium notsupported okay unconfigured_restricted_media update
+ if (!member($sub_state, qw(okay))) {
+ go2State($sub_state);
+ } elsif ($no_more_supported) {
go2State('no_more_supported');
} elsif ($new_distro && $config{DO_NOT_ASK_FOR_DISTRO_UPGRADE} !~ /^true$/i
&& $local_config{DO_NOT_ASK_FOR_DISTRO_UPGRADE} !~ /^true$/i) {
go2State('new_distribution');
} else {
- if ($sub_state eq 'locked') {
- $locked_count++;
- $sub_state = 'loop_locked' if $locked_count > 10;
- } else {
- $locked_count = 0;
- }
go2State($sub_state);
}
}