projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b494576
)
Bug #298310 - Make sure the _selinux attribute is correctly reinitialized after
author
Zac Medico
<zmedico@gentoo.org>
Mon, 4 Jan 2010 18:38:48 +0000
(18:38 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Mon, 4 Jan 2010 18:38:48 +0000
(18:38 -0000)
reload(portage) is called.
svn path=/main/trunk/; revision=15159
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index 7cc2b237f7ddb69985e37d6316d2d46d06a06495..551d2c1771fc3a6706177d962ca84b69160e3278 100644
(file)
--- 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,