Use portage.writemsg for lazy portage.util import. v2.2_rc60
authorZac Medico <zmedico@gentoo.org>
Thu, 17 Dec 2009 03:36:05 +0000 (03:36 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 17 Dec 2009 03:36:05 +0000 (03:36 -0000)
svn path=/main/trunk/; revision=15108

pym/portage/_selinux.py

index e6d44b70bdf924f67ec28b2d93965a22a52a4e5e..594e47ad54dd7a69c8279d8a388c7a9e93b8c619 100644 (file)
@@ -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)