diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-21 16:34:26 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-21 16:34:26 +0000 |
commit | a0c7a708088b5cd9cd8ffebb30267f67371d2f3f (patch) | |
tree | 0ae630d6068db059c4ff8a190dff180fd2ac4700 /mdkapplet-upgrade-helper | |
parent | 1dbff73a83dc18c0c0f476eb24f4e6593e307a66 (diff) | |
download | mgaonline-a0c7a708088b5cd9cd8ffebb30267f67371d2f3f.tar mgaonline-a0c7a708088b5cd9cd8ffebb30267f67371d2f3f.tar.gz mgaonline-a0c7a708088b5cd9cd8ffebb30267f67371d2f3f.tar.bz2 mgaonline-a0c7a708088b5cd9cd8ffebb30267f67371d2f3f.tar.xz mgaonline-a0c7a708088b5cd9cd8ffebb30267f67371d2f3f.zip |
(get_stale_upgrade_filename,is_there_a_new_distributions,upgrade,upgrade_distro_congratulations)
be able to detect unfinished upgrades, even if mandriva-release
already got upgraded
Diffstat (limited to 'mdkapplet-upgrade-helper')
-rwxr-xr-x | mdkapplet-upgrade-helper | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mdkapplet-upgrade-helper b/mdkapplet-upgrade-helper index 39c7dfa8..22d09abb 100755 --- a/mdkapplet-upgrade-helper +++ b/mdkapplet-upgrade-helper @@ -132,6 +132,8 @@ sub upgrade_failed() { } sub upgrade_distro_congratulations() { + rm_rf(get_stale_upgrade_filename()); + local $mygtk2::left_padding = 0; my $w = ugtk2->new(N("Congratulations")); gtkadd($w->{window}, @@ -179,6 +181,8 @@ packages as well?).")) } undef $urpmi_lock; + touch(get_stale_upgrade_filename()); + log::explanations("removing all existing urpmi media for upgrade"); run_program::run('urpmi.removemedia', if_($root, '--urpmi-root', $root), '-a'); |