diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-16 14:39:29 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-16 14:39:29 +0000 |
commit | cebe18f599829a09a4645663dbf6d21fb948df6b (patch) | |
tree | a7451189b517fdf35240e7405b91d7eed6c6a4c6 | |
parent | 0fcb2c608d99eb90604c4aaae4ac253c53c55c80 (diff) | |
download | mgaonline-cebe18f599829a09a4645663dbf6d21fb948df6b.tar mgaonline-cebe18f599829a09a4645663dbf6d21fb948df6b.tar.gz mgaonline-cebe18f599829a09a4645663dbf6d21fb948df6b.tar.bz2 mgaonline-cebe18f599829a09a4645663dbf6d21fb948df6b.tar.xz mgaonline-cebe18f599829a09a4645663dbf6d21fb948df6b.zip |
(upgrade) really prevent upgrading more than once at a time
-rw-r--r-- | NEWS | 3 | ||||
-rwxr-xr-x | mdkapplet | 5 |
2 files changed, 4 insertions, 4 deletions
@@ -1,3 +1,6 @@ +- mdkapplet + o really prevent upgrading more than once at a time + Version 2.62 - 15 October 2008 - mdkapplet-upgrade-helper @@ -373,11 +373,8 @@ sub confirm_upgrade() { $res; } -my $already_in_upgrade; sub upgrade() { - return if $already_in_upgrade; - $already_in_upgrade = 1; - my $_a = before_leaving { undef $already_in_upgrade }; + return if $mdv_update_pid; return if !confirm_upgrade(); $mdv_update_pid = fork_exec('mdkapplet-upgrade-helper', "--new_distro_version=$new_distro->{version}", if_($root, "--urpmi-root=$root")); |