projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da44dcc
)
- delete the cache if the repository is removed using the api
author
Duncan Mac-Vicar P
<dmacvicar@suse.de>
Tue, 19 Jun 2007 14:17:16 +0000
(14:17 +0000)
committer
Duncan Mac-Vicar P
<dmacvicar@suse.de>
Tue, 19 Jun 2007 14:17:16 +0000
(14:17 +0000)
zypp/RepoManager.cc
patch
|
blob
|
history
diff --git
a/zypp/RepoManager.cc
b/zypp/RepoManager.cc
index 71ca998de86fb1936c14e42c73301d349091b7fc..5d6b94efd2c9d66478a84b570eae16e80fbbf934 100644
(file)
--- a/
zypp/RepoManager.cc
+++ b/
zypp/RepoManager.cc
@@
-704,7
+704,12
@@
namespace zypp
(*fit).dumpRepoOn(file);
}
-
+ cache::CacheStore store(_pimpl->options.repoCachePath);
+
+ if ( store.isCached( todelete.alias() ) ) {
+ MIL << "repository was cached. cleaning cache" << endl;
+ store.cleanRepository(todelete.alias());
+ }
return;
}