]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-item.cc
* merged with bubulle
[apt.git] / apt-pkg / acquire-item.cc
index dea68f3eef8259034f58e2ae222595529f1bdf0b..debd1face5c7c2c0a8ccc9556cc9e56e59de2c90 100644 (file)
@@ -770,6 +770,12 @@ pkgAcqArchive::pkgAcqArchive(pkgAcquire *Owner,pkgSourceList *Sources,
       }
    }
 
+   // "allow-unauthenticated" restores apts old fetching behaviour
+   // that means that e.g. unauthenticated file:// uris are higher
+   // priority than authenticated http:// uris
+   if (_config->FindB("APT::Get::AllowUnauthenticated",false) == true)
+      Trusted = false;
+
    // Select a source
    if (QueueNext() == false && _error->PendingError() == false)
       _error->Error(_("I wasn't able to locate file for the %s package. "