summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-08-13 13:35:12 +0000
committerThierry Vignaud <tv@mandriva.org>2007-08-13 13:35:12 +0000
commite94dbfd23f1578fee0a05ad34ecf51b95c69c6bd (patch)
tree53f28a08ec7c504759ae1e9a7f4ecdc75d9d89bd
parent4eb1af0323b37deb833e27469f2708ce3fedb7c6 (diff)
downloadurpmi-e94dbfd23f1578fee0a05ad34ecf51b95c69c6bd.tar
urpmi-e94dbfd23f1578fee0a05ad34ecf51b95c69c6bd.tar.gz
urpmi-e94dbfd23f1578fee0a05ad34ecf51b95c69c6bd.tar.bz2
urpmi-e94dbfd23f1578fee0a05ad34ecf51b95c69c6bd.tar.xz
urpmi-e94dbfd23f1578fee0a05ad34ecf51b95c69c6bd.zip
do try to umount removable media when using --debug (fixing commit rafel's
commit r15048 on 2005-06-09)
-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);
}