Bug #298310 - Make sure the _selinux attribute is correctly reinitialized after
authorZac Medico <zmedico@gentoo.org>
Fri, 29 Jan 2010 18:43:50 +0000 (18:43 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 29 Jan 2010 18:43:50 +0000 (18:43 -0000)
reload(portage) is called. (trunk r15159)

svn path=/main/branches/2.1.7/; revision=15227

pym/portage/__init__.py

index 0c03dcb6c92cde6de8f379b0c09e2c7a6654138d..7e148a354f93f26c450f95cc7c38ae361a437805 100644 (file)
@@ -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,