From 1fcbe14d0cc5bf9892b0176993a884acffbd6ed7 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Mon, 29 Oct 2007 18:29:39 -0200 Subject: [PATCH] * Umount CD-ROM when calling apt-cdrom ident, except when called with -m, closes: #448521. --- apt-pkg/cdrom.cc | 7 +++++++ debian/changelog | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) 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; } diff --git a/debian/changelog b/debian/changelog index 36c7aa2c2..70cfd48aa 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,8 +15,10 @@ apt (0.7.9) UNRELEASED; urgency=low * Applied patch from Brian M. Carlson to add backward support for arches that lacks pselect support, closes: #448406. + * Umount CD-ROM when calling apt-cdrom ident, except when called with + -m, closes: #448521. - -- Otavio Salvador Mon, 29 Oct 2007 15:53:32 -0200 + -- Otavio Salvador Mon, 29 Oct 2007 18:26:27 -0200 apt (0.7.8) unstable; urgency=low -- 2.45.2