Author: dmacvicar Date: Tue Jun 19 16:17:16 2007 New Revision: 5791 URL: http://svn.opensuse.org/viewcvs/zypp?rev=5791&view=rev Log: - delete the cache if the repository is removed using the api Modified: trunk/libzypp/zypp/RepoManager.cc Modified: trunk/libzypp/zypp/RepoManager.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/RepoManager.cc?rev=5791&r1=5790&r2=5791&view=diff ============================================================================== --- trunk/libzypp/zypp/RepoManager.cc (original) +++ trunk/libzypp/zypp/RepoManager.cc Tue Jun 19 16:17:16 2007 @@ -704,7 +704,12 @@ (*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; } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org