]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/contrib/cdromutl.{cc,h}, apt-pkg/cdrom.{cc,h}:
authorMichael Vogt <michael.vogt@ubuntu.com>
Thu, 10 Mar 2011 10:13:44 +0000 (11:13 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Thu, 10 Mar 2011 10:13:44 +0000 (11:13 +0100)
  - 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

apt-pkg/cdrom.cc
debian/changelog
doc/examples/configure-index

index 83438f1c412c0a16e624221a242ddc886235d76f..55600fe57e6d40cb456a215dd24a192080fdbb08 100644 (file)
@@ -875,7 +875,8 @@ pkgUdevCdromDevices::Dlopen()                                       /*{{{*/
 vector<CdromDevice>
 pkgUdevCdromDevices::Scan()
 { 
 vector<CdromDevice>
 pkgUdevCdromDevices::Scan()
 { 
-   return ScanForRemovable(true); 
+   bool CdromOnly = _config->FindB("APT::cdrom::CdromOnly", true);
+   return ScanForRemovable(CdromOnly); 
 };
                                                                        /*}}}*/
                                                                         /*{{{*/
 };
                                                                        /*}}}*/
                                                                         /*{{{*/
index ff5675a0c42cf7bcf4daffecaf35bcb265fb596a..fba16811010350655bfc67a565a7c025f82aea7f 100644 (file)
@@ -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
       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
 
 
  -- Michael Vogt <michael.vogt@ubuntu.com>  Thu, 10 Feb 2011 17:37:56 +0100
 
index 03a37287d9ca486b1a2223d025236a0be93cdb48..6884e06e32d82f3c6703aff7162f6957c787d092 100644 (file)
@@ -265,7 +265,10 @@ Acquire
   cdrom
   {
     // do auto detection of the cdrom mountpoint
   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";
     
     // cdrom mountpoint (needs to be defined in fstab if AutoDetect is not used)
     mount "/cdrom";