]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/debmetaindex.cc
* merged with the current auto-mark branch
[apt.git] / apt-pkg / deb / debmetaindex.cc
index 8dfbf7affe1fd4c3cff84d564c6aa18803f1f6bd..d3b6ed957181941e5b28d431e71410c354419c2f 100644 (file)
@@ -173,6 +173,10 @@ bool debReleaseIndex::IsTrusted() const
    string VerifiedSigFile = _config->FindDir("Dir::State::lists") +
       URItoFileName(MetaIndexURI("Release")) + ".gpg";
    
+   if(_config->FindB("APT::Authentication::TrustCDROM", false))
+      if(URI.substr(0,strlen("cdrom:")) == "cdrom:")
+        return true;
+   
    if (FileExists(VerifiedSigFile))
       return true;
    return false;