Author: dmacvicar Date: Tue Aug 28 12:44:04 2007 New Revision: 6923 URL: http://svn.opensuse.org/viewcvs/zypp?rev=6923&view=rev Log: - delete metadata dir when deleting repos (#301037) 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=6923&r1=6922&r2=6923&view=diff ============================================================================== --- trunk/libzypp/zypp/RepoManager.cc (original) +++ trunk/libzypp/zypp/RepoManager.cc Tue Aug 28 12:44:04 2007 @@ -617,9 +617,13 @@ //////////////////////////////////////////////////////////////////////////// void RepoManager::cleanMetadata( const RepoInfo &info, - const ProgressData::ReceiverFnc & progress ) + const ProgressData::ReceiverFnc & progressfnc ) { + ProgressData progress(100); + progress.sendTo(progressfnc); + filesystem::recursive_rmdir(rawcache_path_for_repoinfo(_pimpl->options, info)); + progress.toMax(); } void RepoManager::buildCache( const RepoInfo &info, @@ -1062,11 +1066,12 @@ } } - CombinedProgressData subprogrcv(progress); - + CombinedProgressData subprogrcv(progress, 70); + CombinedProgressData cleansubprogrcv(progress, 30); // now delete it from cache cleanCache( todelete, subprogrcv); - + // now delete metadata (#301037) + cleanMetadata( todelete, cleansubprogrcv); MIL << todelete.alias() << " sucessfully deleted." << endl; return; } // else filepath is empty -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org