bad = create_color_func("BAD")
from portage.sets import SETPREFIX
from portage.sets.base import InternalPackageSet
-from portage.util import cmp_sort_key, writemsg
+from portage.util import cmp_sort_key, writemsg, writemsg_stdout
from _emerge.AtomArg import AtomArg
from _emerge.Blocker import Blocker
if "--changelog" in self._frozen_config.myopts:
print
for revision,text in changelogs:
-
- if sys.hexversion < 0x3000000:
- # avoid potential UnicodeEncodeError
- if isinstance(revision, unicode):
- revision = revision.encode('utf_8', 'replace')
- if isinstance(text, unicode):
- text = text.encode('utf_8', 'replace')
-
- print bold('*'+revision)
- sys.stdout.write(text)
+ writemsg_stdout(bold('*'+revision) + '\n' + text)
sys.stdout.flush()
return os.EX_OK
print "- "+cpv+" (masked by: "+", ".join(mreasons)+")"
- if sys.hexversion < 0x3000000 and isinstance(comment, unicode):
- # avoid potential UnicodeEncodeError
- comment = comment.encode('utf_8', 'replace')
-
if comment and comment not in shown_comments:
- print filename+":"
- print comment
+ writemsg_stdout(filename + ":\n" + comment + "\n")
shown_comments.add(comment)
portdb = root_config.trees["porttree"].dbapi
for l in missing_licenses: