From: Zac Medico Date: Sat, 8 Sep 2012 16:50:19 +0000 (-0700) Subject: egencache: skip metadata-transfer more often X-Git-Tag: v2.2.0_alpha125~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=85dc824f7b7c595482cadc084411a455c2f00d32;p=portage.git egencache: skip metadata-transfer more often --- diff --git a/bin/egencache b/bin/egencache index 18ab45dde..1b4fa0cb8 100755 --- a/bin/egencache +++ b/bin/egencache @@ -35,7 +35,6 @@ import portage from portage import os, _encodings, _unicode_encode, _unicode_decode from _emerge.MetadataRegen import MetadataRegen from portage.cache.cache_errors import CacheError, StatCollision -from portage.cache.flat_hash import md5_database from portage.manifest import guessManifestFileType from portage.util import cmp_sort_key, writemsg_level from portage import cpv_getkey @@ -887,8 +886,10 @@ def egencache_main(args): cache = repo_config.get_pregenerated_cache( portage.dbapi.dbapi._known_keys, readonly=True) if cache is not None: - if isinstance(cache, md5_database) and \ - os.path.isdir(cache.location): + if cache.complete_eclass_entries: + # If the portdbapi's pregenerated cache supports eclass + # validation, then there's no need to forcibly enable + # metadata-transfer. metadata_transfer = False cache = None