diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2007-10-29 18:29:39 -0200 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2007-10-29 18:29:39 -0200 |
commit | 1fcbe14d0cc5bf9892b0176993a884acffbd6ed7 (patch) | |
tree | 3dd25e2f8396a8de20aceb0dc0a439f1c85aad37 /apt-pkg | |
parent | 919e5852f297045cdb409143df663ad630b123e8 (diff) | |
download | apt-1fcbe14d0cc5bf9892b0176993a884acffbd6ed7.tar.gz |
* Umount CD-ROM when calling apt-cdrom ident, except when called with
-m, closes: #448521.
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/cdrom.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apt-pkg/cdrom.cc b/apt-pkg/cdrom.cc index afb067559..0cbdc178f 100644 --- a/apt-pkg/cdrom.cc +++ b/apt-pkg/cdrom.cc @@ -564,6 +564,13 @@ bool pkgCdrom::Ident(string &ident, pkgCdromStatus *log) Database.Find("CD::"+ident).c_str()); log->Update(msg.str()); } + + // Unmount and finish + if (_config->FindB("APT::CDROM::NoMount",false) == false) { + log->Update(_("Unmounting CD-ROM...\n"), STEP_LAST); + UnmountCdrom(CDROM); + } + return true; } |