summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xurpmi2
1 files changed, 2 insertions, 0 deletions
diff --git a/urpmi b/urpmi
index cbbfc663..d32f9079 100755
--- a/urpmi
+++ b/urpmi
@@ -664,7 +664,9 @@ my $exit_code = urpm::main_loop::run($urpm, $state,
unless ($env || $options{nolock}) {
$urpmi_lock->unlock;
$rpm_lock->unlock;
+}
+unless ($env) {
#- try to umount removable device which may have been mounted.
urpm::removable::try_umounting_removables($urpm);
}