config: _eapi_cache.clear() beginning constructor
authorZac Medico <zmedico@gentoo.org>
Thu, 20 Sep 2012 02:36:03 +0000 (19:36 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 20 Sep 2012 02:36:03 +0000 (19:36 -0700)
This is important when config is reloaded after emerge --sync.

pym/portage/package/ebuild/config.py

index c1630cbc14556d956c9b6044be4753431641293b..d2f62acf6a88c9a9bfb2326fff5e766f901a5fc9 100644 (file)
@@ -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