diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-05-20 14:42:50 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-05-20 14:42:50 +0200 |
commit | 1bae10217617c2f79969635d4387fb2a5fe19ecb (patch) | |
tree | 44fcd2c80189d65092270ac84985c7a265fdb518 /apt-private | |
parent | 5caf35a7e4bd573a22ff7ed0c686c1cf516eeaf0 (diff) |
don't try to get acquire lock in simulation mode
The code moving in eb1f04dda07c2b69549ad9fd793cca0e91841b3e
moved the acquire stuff above the simulation exit, so before getting
locks (and creating/chmod directories) we should be checking if we
should actually really do it…
[ignore as bugfix of an unreleased commit]
Git-Dch: Ignore
Diffstat (limited to 'apt-private')
-rw-r--r-- | apt-private/private-install.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-private/private-install.cc b/apt-private/private-install.cc index 213b3b90c..6c4b30da0 100644 --- a/apt-private/private-install.cc +++ b/apt-private/private-install.cc @@ -111,6 +111,8 @@ bool InstallPackages(CacheFile &Cache,bool ShwKept,bool Ask, bool Safety) // force a hashsum for compatibility reasons _config->CndSet("Acquire::ForceHash", "md5sum"); } + else if (_config->FindB("APT::Get::Simulate") == true) + ; else if (Fetcher.GetLock(_config->FindDir("Dir::Cache::Archives")) == false) return false; |