diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-12-17 03:36:16 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-12-17 03:36:16 +0000 |
commit | a2aaad42a73d78f445c3ce997c50922315111ebd (patch) | |
tree | 6ae0472d9fce922f2f16ffe559e194c5fe760f3e | |
parent | Convert bytes to unicode for exception messages. (trunk r15106) (diff) | |
download | portage-2.1.7.15.tar.gz portage-2.1.7.15.tar.bz2 portage-2.1.7.15.zip |
Use portage.writemsg for lazy portage.util import. (trunk r15108)v2.1.7.15
svn path=/main/branches/2.1.7/; revision=15109
-rw-r--r-- | pym/portage/_selinux.py | 4 |
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) |