summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-03 16:51:12 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-03 16:51:12 +0000
commit0fa3caf2178f02633e4727a786840a5873ac7005 (patch)
treedd49f819869bcc1b6afc47bbc1d8cc436acbf187
parent4ad4fc89cda296901fc6b420b5eb0a5f29bfe3e9 (diff)
downloadmgaonline-0fa3caf2178f02633e4727a786840a5873ac7005.tar
mgaonline-0fa3caf2178f02633e4727a786840a5873ac7005.tar.gz
mgaonline-0fa3caf2178f02633e4727a786840a5873ac7005.tar.bz2
mgaonline-0fa3caf2178f02633e4727a786840a5873ac7005.tar.xz
mgaonline-0fa3caf2178f02633e4727a786840a5873ac7005.zip
(harvester) keep around update result when we detect a new distro
-rwxr-xr-xmdkapplet5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index 54805611..f8ee74ee 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -54,7 +54,7 @@ if (!find { $_ eq '--auto-update' } @ARGV) {
ugtk2::add_icon_path("/usr/share/mdkonline/pixmaps/");
my $online_site = "http://www.mandrivalinux.com/";
-my ($menu, $timeout, $network_timeout, $state_global);
+my ($menu, $timeout, $network_timeout, $state_global, $sub_state);
my $localdir = "$ENV{HOME}/.MdkOnline";
my $localfile = "$localdir/mdkonline";
@@ -327,7 +327,8 @@ sub harvester {
my ($state) = grep { $_->{code} eq $status } values %comm_codes;
if ($state) {
logIt($state->{log});
- go2State($new_distro_version ? 'new_distribution' : $state->{status});
+ $sub_state = $state->{status};
+ go2State($new_distro_version ? 'new_distribution' : $sub_state);
}
} elsif ($media_manager_pid && $media_manager_pid == $childpid) {
undef $media_manager_pid;