diff options
author | Brian Harring <ferringb@gentoo.org> | 2005-09-20 13:13:10 +0000 |
---|---|---|
committer | Brian Harring <ferringb@gentoo.org> | 2005-09-20 13:13:10 +0000 |
commit | 52b6e16768a132f2248adf1ff6e2dacf77f01769 (patch) | |
tree | 90a907c9e7e27ad5b1baa37a5a2d13976fa16c3e /pym | |
parent | 0a520e5ee483fc280abe8308efbfcdd126f74d30 (diff) | |
download | portage-52b6e16768a132f2248adf1ff6e2dacf77f01769.tar.gz portage-52b6e16768a132f2248adf1ff6e2dacf77f01769.tar.bz2 portage-52b6e16768a132f2248adf1ff6e2dacf77f01769.zip |
bug 106363 , selinux failed import resulting in module hanging around causing issues for the logic on the next re-import
import selinux == fail; next attempt, import selinux == non-fail
Python 'feature' of sorts.
svn path=/main/branches/2.0/; revision=2011
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/portage.py b/pym/portage.py index d264ef68e..ef9e9b5c7 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -7164,6 +7164,11 @@ if 'selinux' in settings["USE"].split(" "): except ImportError: writemsg(red("!!! SELinux module not found.")+" Please verify that it was installed.\n") selinux_enabled=0 + if selinux_enabled == 0: + try: + del sys.modules["selinux"] + except KeyError: + pass else: selinux_enabled=0 |