From 68661226e9031f32814beee4cd8215404e8cb459 Mon Sep 17 00:00:00 2001 From: "Justin Riley (home key)" Date: Sun, 5 Jun 2011 18:37:56 -0400 Subject: [PATCH] Apply Justin Riley's ACCEPT_KEYWORDS patch. Excerpts from Justin's comments [1]: At least for Portage 2.1.4.4, /usr/lib64/portage/pym/portage.py's config class specifically excludes ACCEPT_KEYWORDS. Therefore, ENV = portage_config(clone=portage_settings).environ() will never contain ACCEPT_KEYWORDS argument and the arch will always be ~x86 as the result of get_keyword(). ... After looking at the code, it appears that the PORTAGE_CONFIG variable introduced in the previous patch can completely replace ENV. Here's the patch that simply changes: ENV = portage_config(clone=portage_settings).environ() to ENV = portage_config(clone=portage_settings) [1]: http://code.google.com/p/g-pypi/issues/detail?id=4 --- g_pypi/portage_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g_pypi/portage_utils.py b/g_pypi/portage_utils.py index 94b09b7..7bca6d3 100644 --- a/g_pypi/portage_utils.py +++ b/g_pypi/portage_utils.py @@ -33,7 +33,7 @@ import gentoolkit.query __docformat__ = 'restructuredtext' -ENV = portage_config(clone=portage_settings).environ() +ENV = portage_config(clone=portage_settings) LOGGER = logging.getLogger(__name__) LOGGER.setLevel(logging.DEBUG) LOGGER.addHandler(logging.StreamHandler()) -- 2.26.2