from portage.package.ebuild._ipc.ExitCommand import ExitCommand
from portage.package.ebuild._ipc.QueryCommand import QueryCommand
from portage import os
-from portage import _encodings
-from portage import _unicode_decode
from portage.util._pty import _create_pty_or_pipe
from portage.util import apply_secpass_permissions
elog_func(line, phase=phase, key=self.settings.mycpv, out=out)
finally:
portage.output.havecolor = global_havecolor
- msg = _unicode_decode(out.getvalue(),
- encoding=_encodings['content'], errors='replace')
+ msg = out.getvalue()
if msg:
log_path = None
if self.settings.get("PORTAGE_BACKGROUND") != "subprocess":
import sys
import portage
from portage import os
-from portage import _encodings
-from portage import _unicode_decode
from portage.package.ebuild.fetch import _checksum_failure_temp_file
class BinpkgVerifier(AsynchronousTask):
sys.stderr = stderr_orig
portage.output.havecolor = global_havecolor
- msg = _unicode_decode(out.getvalue(),
- encoding=_encodings['content'], errors='replace')
+ msg = out.getvalue()
if msg:
self.scheduler.output(msg, log_path=self.logfile,
background=self.background)
out = io.StringIO()
for line in lines:
eerror(line, phase="unpack", key=self.pkg.cpv, out=out)
- msg = _unicode_decode(out.getvalue(),
- encoding=_encodings['content'], errors='replace')
+ msg = out.getvalue()
if msg:
self.scheduler.output(msg, log_path=self.logfile)
)
from portage import os
from portage import _encodings
-from portage import _unicode_decode
from portage import _unicode_encode
class EbuildPhase(CompositeTask):
if self.phase == "install":
out = io.StringIO()
_check_build_log(self.settings, out=out)
- msg = _unicode_decode(out.getvalue(),
- encoding=_encodings['content'], errors='replace')
+ msg = out.getvalue()
self.scheduler.output(msg, log_path=logfile)
if fail:
out = io.StringIO()
_post_src_install_chost_fix(settings)
_post_src_install_uid_fix(settings, out)
- msg = _unicode_decode(out.getvalue(),
- encoding=_encodings['content'], errors='replace')
+ msg = out.getvalue()
if msg:
self.scheduler.output(msg, log_path=logfile)
elif self.phase == "preinst":
if self.phase == "install":
out = io.StringIO()
_post_src_install_soname_symlinks(self.settings, out)
- msg = _unicode_decode(out.getvalue(),
- encoding=_encodings['content'], errors='replace')
+ msg = out.getvalue()
if msg:
self.scheduler.output(msg, log_path=log_path)
elog_func(line, phase=phase, key=self.settings.mycpv, out=out)
finally:
portage.output.havecolor = global_havecolor
- msg = _unicode_decode(out.getvalue(),
- encoding=_encodings['content'], errors='replace')
+ msg = out.getvalue()
if msg:
log_path = None
if self.settings.get("PORTAGE_BACKGROUND") != "subprocess":
import portage
from portage import os
-from portage import _encodings
from portage import _unicode_decode
from portage.dep import Atom
from portage.elog import messages as elog_messages
elog_func(line, phase=phase, key=self.settings.mycpv, out=out)
finally:
portage.output.havecolor = global_havecolor
- msg = _unicode_decode(out.getvalue(),
- encoding=_encodings['content'], errors='replace')
+ msg = out.getvalue()
return msg