diff options
author | bubulle@debian.org <> | 2006-03-12 21:18:45 +0100 |
---|---|---|
committer | bubulle@debian.org <> | 2006-03-12 21:18:45 +0100 |
commit | a3c8f91f032961aca236f29af646170843a06730 (patch) | |
tree | cb11505f666d3f5ba23be9c6d30086fe29dab977 /cmdline/apt-get.cc | |
parent | 54a14f507b63236ce8c94bb92a835be0cfd161dd (diff) | |
parent | ad97ee36860c237427dc38ac8ef7f537ac275d77 (diff) |
Merge from Michael tree
Diffstat (limited to 'cmdline/apt-get.cc')
-rw-r--r-- | cmdline/apt-get.cc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc index abeb57c6f..d4a6bee32 100644 --- a/cmdline/apt-get.cc +++ b/cmdline/apt-get.cc @@ -1368,7 +1368,7 @@ bool DoUpdate(CommandLine &CmdL) } // Clean out any old list files - if (_config->FindB("APT::Get::List-Cleanup",true) == true) + if (!Failed && _config->FindB("APT::Get::List-Cleanup",true) == true) { if (Fetcher.Clean(_config->FindDir("Dir::State::lists")) == false || Fetcher.Clean(_config->FindDir("Dir::State::lists") + "partial/") == false) @@ -1411,15 +1411,6 @@ bool DoUpgrade(CommandLine &CmdL) /* Install named packages */ bool DoInstall(CommandLine &CmdL) { - // Lock the list directory - FileFd Lock; - if (_config->FindB("Debug::NoLocking",false) == false) - { - Lock.Fd(GetLock(_config->FindDir("Dir::State::Lists") + "lock")); - if (_error->PendingError() == true) - return _error->Error(_("Unable to lock the list directory")); - } - CacheFile Cache; if (Cache.OpenForInstall() == false || Cache.CheckDeps(CmdL.FileSize() != 1) == false) |