From: Martin Vidner Date: Thu, 11 May 2006 08:46:17 +0000 (+0000) Subject: removed dead code dealing with known_caches from SourceManager::store X-Git-Tag: BASE-SuSE-SLE-10-SP2-Branch~819 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=60599a31f0b1f74f7a7bccb4e01ba14579e1a788;p=platform%2Fupstream%2Flibzypp.git removed dead code dealing with known_caches from SourceManager::store (see r3195) --- diff --git a/package/libzypp.changes b/package/libzypp.changes index 743924d..cd14b70 100644 --- a/package/libzypp.changes +++ b/package/libzypp.changes @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu May 11 10:40:21 CEST 2006 - mvidner@suse.cz + +- removed dead code dealing with known_caches from SourceManager::store + (see r3195) + +------------------------------------------------------------------- Thu May 11 10:15:14 CEST 2006 - jsrain@suse.cz - fixed returning product short name and summary if product read diff --git a/zypp/SourceManager.cc b/zypp/SourceManager.cc index 1847def..0a00ea0 100644 --- a/zypp/SourceManager.cc +++ b/zypp/SourceManager.cc @@ -267,14 +267,6 @@ namespace zypp MIL << "Created..." << topdir << std::endl; } - // first, gather all known cache dirs - std::set known_caches; - for( SourceMap::iterator it = _sources.begin(); it != _sources.end(); it++) - { - if( ! it->second.cacheDir().empty() ) - known_caches.insert( it->second.cacheDir().asString() ); - } - for( SourceMap::iterator it = _sources.begin(); it != _sources.end(); it++) { storage::PersistentStorage::SourceData descr; @@ -294,7 +286,6 @@ namespace zypp { filesystem::TmpDir newCache( root_r / ZYPP_METADATA_PREFIX, "Source." ); descr.cache_dir = ZYPP_METADATA_PREFIX + newCache.path().basename(); - known_caches.insert( descr.cache_dir.asString() ); } filesystem::assert_dir ( root_r.asString() + descr.cache_dir );