diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-14 11:54:39 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-14 11:54:39 +0000 |
commit | 7865dd5b06c265731d925c92d2c67c5df0143212 (patch) | |
tree | c77779b65f4d7ea02b1aaa41de71d4d44037ffd6 /mdkapplet | |
parent | c0bd8f72d9ad2e8c33b26159b475be41dd2cce20 (diff) | |
download | mgaonline-7865dd5b06c265731d925c92d2c67c5df0143212.tar mgaonline-7865dd5b06c265731d925c92d2c67c5df0143212.tar.gz mgaonline-7865dd5b06c265731d925c92d2c67c5df0143212.tar.bz2 mgaonline-7865dd5b06c265731d925c92d2c67c5df0143212.tar.xz mgaonline-7865dd5b06c265731d925c92d2c67c5df0143212.zip |
(harvester,restart_applet,upgrade) do not restart the applet on
package update when performing distro upgrade
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -327,6 +327,7 @@ sub harvester { my $status = $? >> 8; if ($mdv_update_pid && $mdv_update_pid == $childpid) { undef $mdv_update_pid; + undef $distro_upgrade; $mdvupdate_returned = 1; } elsif ($checker_pid && $checker_pid == $childpid) { undef $checker_pid; @@ -350,6 +351,7 @@ sub harvester { sub configNetwork() { log::explanations(N_("Launching drakconnect\n")); fork_exec("/usr/sbin/drakconnect") } sub restart_applet() { + return if $distro_upgrade; log::explanations(N_("Mandriva Online seems to be reinstalled, reloading applet ....")); exec($0, '--auto-update'); } @@ -394,6 +396,7 @@ sub upgrade() { $already_in_upgrade = 1; my $_a = before_leaving { undef $already_in_upgrade }; return if !confirm_upgrade(); + $distro_upgrade = 1; $mdv_update_pid = fork_exec('mdkapplet-upgrade-helper', "--new_distro_version=$new_distro->{version}", if_($root, "--urpmi-root=$root")); } |