diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-01-26 21:08:41 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-01-26 21:08:41 +0100 |
commit | ffee221b8d1df28768d30762d72a11289ae747dc (patch) | |
tree | 59b7a852879be9bb0b40c2aa74ac54e6b73b7298 /methods | |
parent | fb503892e3e05132bb7db369440402ff81ea5f8d (diff) |
add Dir::Media::MountPath config option
Diffstat (limited to 'methods')
-rw-r--r-- | methods/cdrom.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/methods/cdrom.cc b/methods/cdrom.cc index c8ec322ee..4bbc01c2c 100644 --- a/methods/cdrom.cc +++ b/methods/cdrom.cc @@ -116,9 +116,9 @@ bool CDROMMethod::AutoDetectAndMount(URI Get, string &NewID) return false; // check if we have the mount point - const char* AptMountPoint = "/media/apt"; + string AptMountPoint = _config->FindDir("Dir::Media::MountPath"); if (!FileExists(AptMountPoint)) - mkdir(AptMountPoint, 0750); + mkdir(AptMountPoint.c_str(), 0750); // now try mounting for (unsigned int i=0; i < v.size(); i++) |