]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/cdrom.cc, apt-pkg/init.cc, methods/cdrom.cc:
authorMichael Vogt <mvo@debian.org>
Tue, 1 Feb 2011 14:51:29 +0000 (15:51 +0100)
committerMichael Vogt <mvo@debian.org>
Tue, 1 Feb 2011 14:51:29 +0000 (15:51 +0100)
  - use /media/cdrom as default mountoint (closes: #611569)

apt-pkg/cdrom.cc
apt-pkg/init.cc
debian/changelog
methods/cdrom.cc

index 0e36f44a27a0f7c9912808f213e8550c4484f7b0..124410b11c0feda92ea07a1a97aec9fc250bc0fc 100644 (file)
@@ -198,7 +198,7 @@ int pkgCdrom::Score(string Path)
    // a symlink gets a big penalty
    struct stat Buf;
    string statPath = flNotFile(Path);
-   string cdromPath = _config->FindDir("Acquire::cdrom::mount","/cdrom/");
+   string cdromPath = _config->FindDir("Acquire::cdrom::mount");
    while(statPath != cdromPath && statPath != "./") {
       statPath.resize(statPath.size()-1);  // remove the trailing '/'
       if (lstat(statPath.c_str(),&Buf) == 0) {
@@ -509,7 +509,7 @@ bool pkgCdrom::Ident(string &ident, pkgCdromStatus *log)            /*{{{*/
    stringstream msg;
 
    // Startup
-   string CDROM = _config->FindDir("Acquire::cdrom::mount","/cdrom/");
+   string CDROM = _config->FindDir("Acquire::cdrom::mount");
    if (CDROM[0] == '.')
       CDROM= SafeGetCWD() + '/' + CDROM;
 
index f0bad78dfd25c804aba2e7cad85caee11abe691b..184942321796272b5bf0250179b35c762ccac14b 100644 (file)
@@ -52,7 +52,7 @@ bool pkgInitConfig(Configuration &Cnf)
    Cnf.Set("Dir::State::lists","lists/");
    Cnf.Set("Dir::State::cdroms","cdroms.list");
    Cnf.Set("Dir::State::mirrors","mirrors/");
-   
+
    // Cache
    Cnf.Set("Dir::Cache","var/cache/apt/");
    Cnf.Set("Dir::Cache::archives","archives/");
@@ -88,6 +88,9 @@ bool pkgInitConfig(Configuration &Cnf)
    // Translation
    Cnf.Set("APT::Acquire::Translation", "environment");
 
+   // Default cdrom mount point
+   Cnf.Set("Acquire::cdrom::mount", "/media/cdrom/");
+
    bool Res = true;
    
    // Read an alternate config file
index a20a29d01646d9ab0516b2dd63f16597950efe1d..a783fdaae4db944dc74ecad836677e9adb4d0818 100644 (file)
@@ -3,6 +3,8 @@ apt (0.8.10.4) UNRELEASED; urgency=low
   * debian/apt.conf.autoremove:
     - never autoremove the GNU/Hurd kernel (closes: #588423), thanks
       to Guillem Jover
+  * apt-pkg/cdrom.cc, apt-pkg/init.cc, methods/cdrom.cc:
+    - use /media/cdrom as default mountoint (closes: #611569)
 
  -- Michael Vogt <mvo@debian.org>  Tue, 01 Feb 2011 09:38:48 +0100
 
index bf4281e403586a9ef73838d49e780ac49de34df6..b25fdf5a855738e4b37dadd5380897333998a29f 100644 (file)
@@ -220,7 +220,7 @@ bool CDROMMethod::Fetch(FetchItem *Itm)
    }
 
    bool AutoDetect = _config->FindB("Acquire::cdrom::AutoDetect", true);
-   CDROM = _config->FindDir("Acquire::cdrom::mount","/cdrom/");
+   CDROM = _config->FindDir("Acquire::cdrom::mount");
    if (Debug)
       clog << "Looking for CDROM at " << CDROM << endl;