from portage.output import bold, create_color_func, \
green, nocolor, red
from portage.output import ConsoleStyleFile, StyleWriter
-from portage.util import cmp_sort_key, writemsg_level
+from portage.util import cmp_sort_key, writemsg_level, writemsg_stdout
from portage.package.ebuild.digestgen import digestgen
from portage.eapi import eapi_has_slot_deps, \
eapi_has_use_deps, eapi_has_strong_blocks, eapi_has_iuse_defaults, \
logging.info("calling echangelog for package %s" % x)
echangelog_args = ["echangelog", "--vcs", vcs, changelog_msg]
if options.pretend:
- print("(%s)" % (" ".join(echangelog_args),))
+ writemsg_stdout("(%s)\n" % (" ".join(echangelog_args),),
+ noiselevel=-1)
continue
- retcode = subprocess.call(echangelog_args, cwd=checkdir)
+ echangelog_args = [_unicode_encode(arg) for arg in echangelog_args]
+ echangelog_cwd = _unicode_encode(checkdir,
+ encoding=_encodings['fs'], errors='strict')
+ retcode = subprocess.call(echangelog_args, cwd=echangelog_cwd)
if retcode != os.EX_OK:
logging.error("echangelog exited with '%s' status" % retcode)
sys.exit(retcode)