projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7622483
)
Don't 'del sys.modules["selinux"]' when selinux support isn't enabled in
author
Zac Medico
<zmedico@gentoo.org>
Fri, 14 Aug 2009 07:01:32 +0000
(07:01 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 14 Aug 2009 07:01:32 +0000
(07:01 -0000)
the portage config, because that just assumes too much.
svn path=/main/trunk/; revision=14026
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index 6cff57d8f20551d211800a53a1cfb529ef602bfa..f20284e30230bf4ddb728fb5c6356f36e5215ee1 100644
(file)
--- a/
pym/portage/__init__.py
+++ b/
pym/portage/__init__.py
@@
-3680,11
+3680,7
@@
class config(object):
writemsg("!!! SELinux module not found. Please verify that it was installed.\n",
noiselevel=-1)
self._selinux_enabled = 0
- if self._selinux_enabled == 0:
- try:
- del sys.modules["selinux"]
- except KeyError:
- pass
+
return self._selinux_enabled
if sys.hexversion >= 0x3000000: