From 85957247514a839d58751ad6e1b5305fe7dbc902 Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Dec 02 2019 02:44:14 +0000 Subject: Also capture stderr in logfile Signed-off-by: Orion Poplawski --- diff --git a/pyrpkg/__init__.py b/pyrpkg/__init__.py index 0284aaa..73a137c 100644 --- a/pyrpkg/__init__.py +++ b/pyrpkg/__init__.py @@ -2629,7 +2629,7 @@ class Commands(object): cmd.extend(['-ba', os.path.join(self.path, self.spec)]) logfile = '.build-%s-%s.log' % (self.ver, self.rel) - cmd = '%s | tee %s' % (' '.join(cmd), logfile) + cmd = '%s |& tee %s' % (' '.join(cmd), logfile) try: # Since zsh is a widely used, which is supported by fedpkg # actually, pipestatus is for checking the first command when zsh