aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2006-11-29 11:55:25 +0000
committerThierry Vignaud <tv@mandriva.org>2006-11-29 11:55:25 +0000
commit3f987ccbc6f70522d41374109b60ab01c1e19f87 (patch)
tree8c3d49d924a1979d3442aa5e8a69e8036ff901e1
parenta330919c3b40d3931bab4de7b05081027c5dfa6a (diff)
downloadrpmdrake-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-xrpmdrake4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmdrake b/rpmdrake
index 025ffb49..0d27da63 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -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."));
}