From 85dc824f7b7c595482cadc084411a455c2f00d32 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 8 Sep 2012 09:50:19 -0700 Subject: [PATCH] egencache: skip metadata-transfer more often --- bin/egencache | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.26.2