summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-03-10 11:13:44 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2011-03-10 11:13:44 +0100
commitc9952021ba65db0581f6053cd6d6e8bf7d563e8f (patch)
tree01065683f59fc1eb8ddc025d79a26fdf31a8623e
parent02aa6f67360bbd8f15c29fb0701badda99fc8c75 (diff)
downloadapt-c9952021ba65db0581f6053cd6d6e8bf7d563e8f.tar.gz
* apt-pkg/contrib/cdromutl.{cc,h}, apt-pkg/cdrom.{cc,h}:
- deal with missing FSTAB_DIR when using libudev to discover cdrom - add experimental APT::cdrom::CdromOnly option (on by default). When this is set to false apt-cdrom will handle any removable deivce (like a usb-stick) as a "cdrom/dvd" source
-rw-r--r--apt-pkg/cdrom.cc3
-rw-r--r--debian/changelog5
-rw-r--r--doc/examples/configure-index5
3 files changed, 11 insertions, 2 deletions
diff --git a/apt-pkg/cdrom.cc b/apt-pkg/cdrom.cc
index 83438f1c..55600fe5 100644
--- a/apt-pkg/cdrom.cc
+++ b/apt-pkg/cdrom.cc
@@ -875,7 +875,8 @@ pkgUdevCdromDevices::Dlopen() /*{{{*/
vector<CdromDevice>
pkgUdevCdromDevices::Scan()
{
- return ScanForRemovable(true);
+ bool CdromOnly = _config->FindB("APT::cdrom::CdromOnly", true);
+ return ScanForRemovable(CdromOnly);
};
/*}}}*/
/*{{{*/
diff --git a/debian/changelog b/debian/changelog
index ff5675a0..fba16811 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,11 @@ apt (0.8.12) UNRELEASED; urgency=low
to Thorsten Spindler (LP: #85590)
* apt-pkg/contrib/fileutl.cc, apt-pkg/deb/dpkgpm.cc:
- honor Dpkg::Chroot-Directory in the RunScripts*() methods
+ * apt-pkg/contrib/cdromutl.{cc,h}, apt-pkg/cdrom.{cc,h}:
+ - deal with missing FSTAB_DIR when using libudev to discover cdrom
+ - add experimental APT::cdrom::CdromOnly option (on by default).
+ When this is set to false apt-cdrom will handle any removable
+ deivce (like a usb-stick) as a "cdrom/dvd" source
-- Michael Vogt <michael.vogt@ubuntu.com> Thu, 10 Feb 2011 17:37:56 +0100
diff --git a/doc/examples/configure-index b/doc/examples/configure-index
index 03a37287..6884e06e 100644
--- a/doc/examples/configure-index
+++ b/doc/examples/configure-index
@@ -265,7 +265,10 @@ Acquire
cdrom
{
// do auto detection of the cdrom mountpoint
- AutoDetect "true";
+ AutoDetect "true";
+ // when auto-detecting, only look for cdrom/dvd. when this is false
+ // it will support any removable device as a "cdrom" source
+ CdromOnly "true";
// cdrom mountpoint (needs to be defined in fstab if AutoDetect is not used)
mount "/cdrom";