From 9ef18c2a97bee1ff94163b77573aea72d7a3b01b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 22 Dec 2011 12:06:45 -0800 Subject: [PATCH] config.setcpv(): use dbapi._aux_cache_keys This helps to avoid triggering the environment.bz2 extraction in vardbapi.aux_get(). --- pym/portage/package/ebuild/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py index f6166c65b..366f548f1 100644 --- a/pym/portage/package/ebuild/config.py +++ b/pym/portage/package/ebuild/config.py @@ -1188,8 +1188,11 @@ class config(object): # packages since we want to save it PORTAGE_BUILT_USE for # evaluating conditional USE deps in atoms passed via IPC to # helpers like has_version and best_version. + aux_keys = set(aux_keys) + if hasattr(mydb, '_aux_cache_keys'): + aux_keys = aux_keys.intersection(mydb._aux_cache_keys) + aux_keys.add('USE') aux_keys = list(aux_keys) - aux_keys.append('USE') for k, v in zip(aux_keys, mydb.aux_get(self.mycpv, aux_keys)): pkg_configdict[k] = v built_use = frozenset(pkg_configdict.pop('USE').split()) -- 2.26.2