From 9cc0e2cab7c83ede99e21c70f248d884b8930983 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Sun, 16 Feb 2020 11:45:05 +0100 Subject: Revert "Add a Packages-Require-Authorization Release file field" This experiment did not turn out sensibly, as some servers do not accept credentials when none are expected and fail, so you cannot mirror such a repository. This reverts commit c2b9b0489538fed4770515bd8853a960b13a2618. --- apt-pkg/policy.cc | 4 ---- 1 file changed, 4 deletions(-) (limited to 'apt-pkg/policy.cc') diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc index 5f9ece85f..70d63fedb 100644 --- a/apt-pkg/policy.cc +++ b/apt-pkg/policy.cc @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include @@ -85,7 +84,6 @@ pkgPolicy::pkgPolicy(pkgCache *Owner) : VerPins(nullptr), /* */ bool pkgPolicy::InitDefaults() { - std::vector> authconfs; // Initialize the priorities based on the status of the package file for (pkgCache::PkgFileIterator I = Cache->FileBegin(); I != Cache->FileEnd(); ++I) { @@ -96,8 +94,6 @@ bool pkgPolicy::InitDefaults() PFPriority[I->ID] = 100; else if (I.Flagged(pkgCache::Flag::NotAutomatic)) PFPriority[I->ID] = 1; - if (I.Flagged(pkgCache::Flag::PackagesRequireAuthorization) && !IsAuthorized(I, authconfs)) - PFPriority[I->ID] = NEVER_PIN; } // Apply the defaults.. -- cgit v1.2.3