From 0fa3caf2178f02633e4727a786840a5873ac7005 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 3 Oct 2008 16:51:12 +0000 Subject: (harvester) keep around update result when we detect a new distro --- mdkapplet | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mdkapplet') 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; -- cgit v1.2.1