|
Lines 32-37
Link Here
|
| 32 |
#include <apt-pkg/version.h> |
32 |
#include <apt-pkg/version.h> |
| 33 |
|
33 |
|
| 34 |
#include <apti18n.h> |
34 |
#include <apti18n.h> |
|
|
35 |
|
| 36 |
#include "rpm/rpmindexfile.h" |
| 35 |
/*}}}*/ |
37 |
/*}}}*/ |
| 36 |
|
38 |
|
| 37 |
// lazyCacheFile::lazyCacheFile - Constructor /*{{{*/ |
39 |
// lazyCacheFile::lazyCacheFile - Constructor /*{{{*/ |
|
Lines 241-246
void pkgCacheFile::RemoveCaches()
Link Here
|
| 241 |
const std::string pkgcache = _config->FindFile("Dir::Cache::pkgcache"); |
243 |
const std::string pkgcache = _config->FindFile("Dir::Cache::pkgcache"); |
| 242 |
const std::string srcpkgcache = _config->FindFile("Dir::Cache::srcpkgcache"); |
244 |
const std::string srcpkgcache = _config->FindFile("Dir::Cache::srcpkgcache"); |
| 243 |
|
245 |
|
|
|
246 |
removeRepositoryCaches(); |
| 247 |
|
| 244 |
if ((!pkgcache.empty()) && RealFileExists(pkgcache)) |
248 |
if ((!pkgcache.empty()) && RealFileExists(pkgcache)) |
| 245 |
RemoveFile("RemoveCaches", pkgcache); |
249 |
RemoveFile("RemoveCaches", pkgcache); |
| 246 |
if ((!srcpkgcache.empty()) && RealFileExists(srcpkgcache)) |
250 |
if ((!srcpkgcache.empty()) && RealFileExists(srcpkgcache)) |