summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-09-19 19:36:03 -0700
committerZac Medico <zmedico@gentoo.org>2012-09-19 19:36:03 -0700
commitc4a5a11080868abae6864e8fe6ab0ba2340ed51c (patch)
tree2a918f0d92be1496940606817bac4d0f9a7bd804
parent60d7d3cf4364a1cc41cf98b57359a0faf1fdc5bd (diff)
downloadportage-c4a5a11080868abae6864e8fe6ab0ba2340ed51c.tar.gz
portage-c4a5a11080868abae6864e8fe6ab0ba2340ed51c.tar.bz2
portage-c4a5a11080868abae6864e8fe6ab0ba2340ed51c.zip
config: _eapi_cache.clear() beginning constructor
This is important when config is reloaded after emerge --sync.
-rw-r--r--pym/portage/package/ebuild/config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/package/ebuild/config.py b/pym/portage/package/ebuild/config.py
index c1630cbc1..d2f62acf6 100644
--- a/pym/portage/package/ebuild/config.py
+++ b/pym/portage/package/ebuild/config.py
@@ -178,6 +178,9 @@ class config(object):
@type _unmatched_removal: Boolean
"""
+ # This is important when config is reloaded after emerge --sync.
+ _eapi_cache.clear()
+
# When initializing the global portage.settings instance, avoid
# raising exceptions whenever possible since exceptions thrown
# from 'import portage' or 'import portage.exceptions' statements