diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-03 16:51:12 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-03 16:51:12 +0000 |
commit | 0fa3caf2178f02633e4727a786840a5873ac7005 (patch) | |
tree | dd49f819869bcc1b6afc47bbc1d8cc436acbf187 | |
parent | 4ad4fc89cda296901fc6b420b5eb0a5f29bfe3e9 (diff) | |
download | mgaonline-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-x | mdkapplet | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |