diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-09-08 09:50:19 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-09-08 09:50:19 -0700 |
commit | 85dc824f7b7c595482cadc084411a455c2f00d32 (patch) | |
tree | 3757361274eb8ae81209c30eeb7046c2dcb2158c | |
parent | d23756ce3cb10fecbb8735fbbc784ef76e1621f3 (diff) | |
download | portage-85dc824f7b7c595482cadc084411a455c2f00d32.tar.gz portage-85dc824f7b7c595482cadc084411a455c2f00d32.tar.bz2 portage-85dc824f7b7c595482cadc084411a455c2f00d32.zip |
egencache: skip metadata-transfer more often
-rwxr-xr-x | bin/egencache | 7 |
1 files 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 |