diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-09-12 16:09:53 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-09-12 16:09:53 +0200 |
commit | 7adf8bb88faba98793998bed1e6c60f4b5483531 (patch) | |
tree | 4002c43084de6db6eb4f6128baa241cb6c757ba7 /apt-pkg/acquire.cc | |
parent | 178dd062eeaa1d7e56770455e005dc27aa71f026 (diff) | |
parent | 02679bb36369dce76f3a2159dbb829ba221c1e67 (diff) |
merged from lp:~donkult/apt/sid
Diffstat (limited to 'apt-pkg/acquire.cc')
-rw-r--r-- | apt-pkg/acquire.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc index a2da196be..ef120d8e9 100644 --- a/apt-pkg/acquire.cc +++ b/apt-pkg/acquire.cc @@ -445,6 +445,10 @@ pkgAcquire::Worker *pkgAcquire::WorkerStep(Worker *I) if it is part of the download set. */ bool pkgAcquire::Clean(string Dir) { + // non-existing directories are by definition clean… + if (DirectoryExists(Dir) == false) + return true; + DIR *D = opendir(Dir.c_str()); if (D == 0) return _error->Errno("opendir",_("Unable to read %s"),Dir.c_str()); |