diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-01-26 11:49:29 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-01-26 11:49:29 +0100 |
commit | bca4c203ac8664f7cdbffd4ce8474b358f708658 (patch) | |
tree | 7ce57259389dd6bbafb4a836b226dfdf6768fd24 /methods | |
parent | ab3846c01acfd223e7e4b8fbe1be5f325b205466 (diff) | |
download | apt-bca4c203ac8664f7cdbffd4ce8474b358f708658.tar.gz |
add new "Acquire::cdrom::AutoDetect" config that enables/disables
the dlopen of libudev for automatic cdrom detection. Off by default
currently, feedback/testing welcome
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 b0f1a155..b3f46181 100644 --- a/methods/cdrom.cc +++ b/methods/cdrom.cc @@ -218,6 +218,7 @@ bool CDROMMethod::Fetch(FetchItem *Itm) return true; } + bool AutoDetect = _config->FindB("Acquire::cdrom::AutoDetect", false); CDROM = _config->FindDir("Acquire::cdrom::mount","/cdrom/"); if (Debug) clog << "Looking for CDROM at " << CDROM << endl; @@ -228,7 +229,7 @@ bool CDROMMethod::Fetch(FetchItem *Itm) string NewID; while (CurrentID.empty() == true) { - if (CDROM == "apt-udev-auto/") + if (AutoDetect) AutoDetectAndMount(Get, NewID); if(!IsMounted(CDROM)) |