diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-08 15:00:29 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-08 15:00:29 +0000 |
commit | fad444b8e4c07b926e034329b323a5f98a9f3edd (patch) | |
tree | 9cb588380c53c1c3b164b89602b34fbf59d0f043 /mdkapplet | |
parent | 554ba2d88b8ce926e535f05cf9485aa708bc37b4 (diff) | |
download | mgaonline-fad444b8e4c07b926e034329b323a5f98a9f3edd.tar mgaonline-fad444b8e4c07b926e034329b323a5f98a9f3edd.tar.gz mgaonline-fad444b8e4c07b926e034329b323a5f98a9f3edd.tar.bz2 mgaonline-fad444b8e4c07b926e034329b323a5f98a9f3edd.tar.xz mgaonline-fad444b8e4c07b926e034329b323a5f98a9f3edd.zip |
(upgrade) prevent upgrading more than once at a time
Diffstat (limited to 'mdkapplet')
-rwxr-xr-x | mdkapplet | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -436,7 +436,11 @@ 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 !confirm_upgrade(); logIt("backuping urpmi configuration"); cp_af("$root/etc/urpmi/urpmi.cfg", "$ENV{HOME}/urpmi.cfg.backup." . int(rand 100000)); |