diff options
author | Michael Vogt <mvo@debian.org> | 2005-11-09 19:57:21 +0000 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2005-11-09 19:57:21 +0000 |
commit | bc7c97627e28be226e88ec8b2290b820985b802f (patch) | |
tree | caff6923cd8cb10d78341f10a531cdb82b1b0100 /apt-pkg | |
parent | 8e0af83344d9e3a4d994efe089529a974fab85e0 (diff) | |
parent | a3371852091e3590bd425f2674b56ae3d5ae2445 (diff) |
* merged with apt--mvo
Patches applied:
* michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-89
* turn off "secure-acquire" when --allow-unauthenticated is given
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/acquire-item.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index dea68f3ee..debd1face 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -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. " |