summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-12-17 03:36:05 +0000
committerZac Medico <zmedico@gentoo.org>2009-12-17 03:36:05 +0000
commitc6da6c85ec61f0fffe40e7cdda0a07052e7596e1 (patch)
tree9265d8ae4d46b9cf40c579860e8e56068bed1a8c
parent4fad9366c0269b4a836931475c986a01c91b09b0 (diff)
downloadportage-c6da6c85ec61f0fffe40e7cdda0a07052e7596e1.tar.gz
portage-c6da6c85ec61f0fffe40e7cdda0a07052e7596e1.tar.bz2
portage-c6da6c85ec61f0fffe40e7cdda0a07052e7596e1.zip
Use portage.writemsg for lazy portage.util import.v2.2_rc60
svn path=/main/trunk/; revision=15108
-rw-r--r--pym/portage/_selinux.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/_selinux.py b/pym/portage/_selinux.py
index e6d44b70b..594e47ad5 100644
--- a/pym/portage/_selinux.py
+++ b/pym/portage/_selinux.py
@@ -7,11 +7,11 @@
import os
import shutil
+import portage
from portage import _encodings
from portage import _unicode_decode
from portage import _unicode_encode
from portage.localization import _
-from portage.util import writemsg
import selinux
from selinux import is_selinux_enabled
@@ -81,7 +81,7 @@ def setexec(ctx="\n"):
if selinux.security_getenforce() == 1:
raise OSError(_("Failed setting exec() context \"%s\".") % ctx)
else:
- writemsg("!!! " + \
+ portage.writemsg("!!! " + \
_("Failed setting exec() context \"%s\".") % ctx, \
noiselevel=-1)