1 |
commit: e06065bffc3f1764500fddf870f4cdccef19e2b8 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 29 08:02:34 2011 +0000 |
4 |
Commit: Thomas Sachau <tommy <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 29 08:02:34 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=e06065bf |
7 |
|
8 |
Fix selinux import error handling. |
9 |
|
10 |
--- |
11 |
pym/portage/__init__.py | 1 + |
12 |
1 files changed, 1 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py |
15 |
index 374d077..9732a74 100644 |
16 |
--- a/pym/portage/__init__.py |
17 |
+++ b/pym/portage/__init__.py |
18 |
@@ -309,6 +309,7 @@ shutil = _unicode_module_wrapper(_shutil, encoding=_encodings['fs']) |
19 |
|
20 |
# Imports below this point rely on the above unicode wrapper definitions. |
21 |
try: |
22 |
+ __import__('selinux') |
23 |
import portage._selinux |
24 |
selinux = _unicode_module_wrapper(_selinux, |
25 |
encoding=_encodings['fs']) |