diff options
author | Thierry Vignaud <tv@mandriva.org> | 2006-11-29 11:55:25 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2006-11-29 11:55:25 +0000 |
commit | 3f987ccbc6f70522d41374109b60ab01c1e19f87 (patch) | |
tree | 8c3d49d924a1979d3442aa5e8a69e8036ff901e1 | |
parent | a330919c3b40d3931bab4de7b05081027c5dfa6a (diff) | |
download | rpmdrake-3f987ccbc6f70522d41374109b60ab01c1e19f87.tar rpmdrake-3f987ccbc6f70522d41374109b60ab01c1e19f87.tar.gz rpmdrake-3f987ccbc6f70522d41374109b60ab01c1e19f87.tar.bz2 rpmdrake-3f987ccbc6f70522d41374109b60ab01c1e19f87.tar.xz rpmdrake-3f987ccbc6f70522d41374109b60ab01c1e19f87.zip |
(perform_installation) simplify and ensure we run urpmi cleanup code in all
exit paths
-rwxr-xr-x | rpmdrake | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1965,6 +1965,8 @@ Is it ok to continue?", join("\n\n", $r, if_($to_install, $to_install)))) : $to_ } } + before_leaving { warn "DONE\n"; urpm::removable::try_umounting_removables($urpm) }; + my $something_installed; if (@rpms_install || @rpms_upgrade || @to_remove) { if (my @missing = grep { m|^/| && ! -e $_ } @rpms_install, @rpms_upgrade) { @@ -2018,7 +2020,6 @@ Is it ok to continue?", join("\n\n", $r, if_($to_install, $to_install)))) : $to_ }, ); gurpm::end(); - urpm::removable::try_umounting_removables($urpm); if (@errors || @error_msgs) { interactive_msg_( @@ -2071,7 +2072,6 @@ you may now inspect some in order to take actions:"), } } else { gurpm::end(); - urpm::removable::try_umounting_removables($urpm); interactive_msg_(N("Error"), N("Unrecoverable error: no package found for installation, sorry.")); } |