From a49704b2b82e7176fc32e481b25977c8c7686c83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Tue, 20 Feb 2018 12:16:02 +0100 Subject: [PATCH] scm: Stop decoding output of post-clone command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is no guarantee that it will print any text. We don't even need the output, we just print it to error log if there is a problem. Fixes: https://pagure.io/pungi/issue/847 Signed-off-by: Lubomír Sedlář --- pungi/wrappers/scm.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pungi/wrappers/scm.py b/pungi/wrappers/scm.py index bdcf9b60..966dbc51 100644 --- a/pungi/wrappers/scm.py +++ b/pungi/wrappers/scm.py @@ -44,10 +44,9 @@ class ScmBase(kobo.log.LoggingBase): def run_process_command(self, cwd): if self.command: self.log_debug('Running "%s"' % self.command) - retcode, output = run(self.command, workdir=cwd, can_fail=True, - universal_newlines=True) + retcode, output = run(self.command, workdir=cwd, can_fail=True) if retcode != 0: - self.log_error('Output was: "%s"' % output) + self.log_error('Output was: %r' % output) raise RuntimeError('%r failed with exit code %s' % (self.command, retcode))