diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2007-03-07 12:06:08 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2007-03-07 12:06:08 +0100 |
commit | 25a04630d6eef123a62f50703b82cc62acf1fbfb (patch) | |
tree | 9b1a557cde0fd91412c800a9b15879e1e9a0e4db /methods | |
parent | 509598772f0df89ea5e783a636fb941b1fc6675c (diff) |
- added APT::CDROM::UnMountOnFinish to have more control over
the umount/mount process
Diffstat (limited to 'methods')
-rw-r--r-- | methods/cdrom.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/methods/cdrom.cc b/methods/cdrom.cc index d662b7129..556d2c1a6 100644 --- a/methods/cdrom.cc +++ b/methods/cdrom.cc @@ -57,7 +57,8 @@ CDROMMethod::CDROMMethod() : pkgAcqMethod("1.0",SingleInstance | LocalOnly | /* */ void CDROMMethod::Exit() { - if (Mounted == true && _config->FindB("APT::CDROM::NoMount",false) == false) + if (Mounted == true && + _config->FindB("APT::CDROM::UnMountOnFinish",true) == true) UnmountCdrom(CDROM); } /*}}}*/ |