diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2003-02-18 23:08:15 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2003-02-18 23:08:15 +0000 |
commit | 01a505b06647998f3c5410f01480a19baee92d78 (patch) | |
tree | baa1b5bd8bbf3cecc1ba75d0ff42638396a87d82 | |
parent | f86801a82cd3e7f2cc6283b1be57a041cd79eb56 (diff) | |
download | rpmdrake-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-x | rpmdrake | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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?).")); } |