From 1f56236ea62916572b48edbbee53665337ad230a Mon Sep 17 00:00:00 2001 From: Duncan Mac-Vicar P Date: Tue, 19 Jun 2007 14:17:16 +0000 Subject: [PATCH] - delete the cache if the repository is removed using the api --- zypp/RepoManager.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/zypp/RepoManager.cc b/zypp/RepoManager.cc index 71ca998..5d6b94e 100644 --- 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; } -- 2.7.4