summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2019-02-26 12:44:26 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2019-02-26 16:31:20 +0100
commita9182c8f789e7d19def3d6e178cb02bd9a46aa24 (patch)
treeb791fe3ca1616b8fa4b7aaa83a4420458f97ecbe /apt-pkg/acquire.cc
parent91e1f7d49830289d8e9d3fdd7ebbe7544a9838b8 (diff)
acquire: Remove deprecated pkgAcquire::Setup() function
Diffstat (limited to 'apt-pkg/acquire.cc')
-rw-r--r--apt-pkg/acquire.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc
index fc256b39e..295af6eca 100644
--- a/apt-pkg/acquire.cc
+++ b/apt-pkg/acquire.cc
@@ -127,25 +127,6 @@ static bool SetupAPTPartialDirectory(std::string const &grand, std::string const
return true;
}
-bool pkgAcquire::Setup(pkgAcquireStatus *Progress, string const &Lock)
-{
- Log = Progress;
- if (Lock.empty())
- {
- string const listDir = _config->FindDir("Dir::State::lists");
- if (SetupAPTPartialDirectory(_config->FindDir("Dir::State"), listDir, "partial", 0700) == false)
- return _error->Errno("Acquire", _("List directory %s is missing."), (listDir + "partial").c_str());
- if (SetupAPTPartialDirectory(_config->FindDir("Dir::State"), listDir, "auxfiles", 0755) == false)
- {
- // not being able to create lists/auxfiles isn't critical as we will use a tmpdir then
- }
- string const archivesDir = _config->FindDir("Dir::Cache::Archives");
- if (SetupAPTPartialDirectory(_config->FindDir("Dir::Cache"), archivesDir, "partial", 0700) == false)
- return _error->Errno("Acquire", _("Archives directory %s is missing."), (archivesDir + "partial").c_str());
- return true;
- }
- return GetLock(Lock);
-}
bool pkgAcquire::GetLock(std::string const &Lock)
{
if (Lock.empty() == true)