aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-02-18 23:08:15 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-02-18 23:08:15 +0000
commit01a505b06647998f3c5410f01480a19baee92d78 (patch)
treebaa1b5bd8bbf3cecc1ba75d0ff42638396a87d82
parentf86801a82cd3e7f2cc6283b1be57a041cd79eb56 (diff)
downloadrpmdrake-01a505b06647998f3c5410f01480a19baee92d78.tar
rpmdrake-01a505b06647998f3c5410f01480a19baee92d78.tar.gz
rpmdrake-01a505b06647998f3c5410f01480a19baee92d78.tar.bz2
rpmdrake-01a505b06647998f3c5410f01480a19baee92d78.tar.xz
rpmdrake-01a505b06647998f3c5410f01480a19baee92d78.zip
don't unmount cdrom before some potential accesses will be done
for actually installing packages :)
-rwxr-xr-xrpmdrake3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmdrake b/rpmdrake
index f2f6a5d3..13eadd1e 100755
--- a/rpmdrake
+++ b/rpmdrake
@@ -951,7 +951,6 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
interactive_msg_(N("Change medium"),
N("Please insert the medium named \"%s\" on device [%s]", @_),
yesno => 1, text => { yes => N("Ok"), no => N("Cancel") }) });
- $urpm->try_umounting_removables;
my @rpms_install = grep { !/\.src\.rpm$/ } values %{$urpm->extract_packages_to_install(\%sources) || {}};
my @rpms_upgrade = grep { !/\.src\.rpm$/ } values %sources;
@@ -976,6 +975,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
or print(STDERR " *** ERROR *** Could not exec $grpmi.\n"), c::_exit(-1);
}
my $exitstatus = $?;
+ $urpm->try_umounting_removables;
my %pkg2rpmnew;
foreach my $u (@rpms_upgrade) {
$u =~ m|/([^/]+-[^-]+-[^-]+)\.[^\./]+\.rpm$|
@@ -990,6 +990,7 @@ sub perform_installation { #- (partially) duplicated from /usr/sbin/urpmi :-(
N("All requested packages were installed successfully."));
die "return $exitstatus\n";
} else {
+ $urpm->try_umounting_removables;
interactive_msg_(N("Everything already installed."),
N("Everything already installed (is this supposed to happen at all?)."));
}