X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/36fb926eada14ae6d3cb7f7658d95fb8c8013812..b43b5a7d67cdf706afbb30ff470f1a8d7d810986:/apt-pkg/cdrom.cc?ds=inline diff --git a/apt-pkg/cdrom.cc b/apt-pkg/cdrom.cc index afb067559..370687f24 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; } @@ -668,8 +675,8 @@ bool pkgCdrom::Add(pkgCdromStatus *log) DropRepeats(TransList,""); if(log) { msg.str(""); - ioprintf(msg, _("Found %u package indexes, %u source indexes, " - "%u translation indexes and %u signatures\n"), + ioprintf(msg, _("Found %zu package indexes, %zu source indexes, " + "%zu translation indexes and %zu signatures\n"), List.size(), SourceList.size(), TransList.size(), SigList.size()); log->Update(msg.str(), STEP_SCAN);