summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-01-04 18:38:48 +0000
committerZac Medico <zmedico@gentoo.org>2010-01-04 18:38:48 +0000
commita0b08a311ded812aae0058f46d9c45271b24bdc8 (patch)
tree095a5ade73a317ec97ff9216b4bbf0556c53f544 /pym
parentb49457645e1265383c4eff2b663d93005646bfb9 (diff)
downloadportage-a0b08a311ded812aae0058f46d9c45271b24bdc8.tar.gz
portage-a0b08a311ded812aae0058f46d9c45271b24bdc8.tar.bz2
portage-a0b08a311ded812aae0058f46d9c45271b24bdc8.zip
Bug #298310 - Make sure the _selinux attribute is correctly reinitialized after
reload(portage) is called. svn path=/main/trunk/; revision=15159
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 7cc2b237f..551d2c177 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -293,6 +293,9 @@ selinux = None
_selinux_merge = None
try:
import portage._selinux
+ # Make sure the _selinux attribute is correctly reinitialized after
+ # reload(portage) is called. See bug #298310.
+ _selinux = sys.modules['portage._selinux']
selinux = _unicode_module_wrapper(_selinux,
encoding=_encodings['fs'])
_selinux_merge = _unicode_module_wrapper(_selinux,