commit cf8affe1576cb9dc3e8ac0561a51c4e88c7b0b85
Author: Arkadiusz MiĆkiewicz <[email protected]>
Date: Wed Feb 24 13:21:11 2021 +0100
Hide rpmbuild output unless --verbose (rpmbuild default is RPMLOG_WARNING
even in --quiet mode and it is too noisy)
rediff-patches.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/rediff-patches.py b/rediff-patches.py
index caac7d1..875d0ea 100755
--- a/rediff-patches.py
+++ b/rediff-patches.py
@@ -40,8 +40,9 @@ def unpack(spec, builddir):
'--define', '_default_patch_fuzz 2',
spec ]
logging.debug("running %s" % repr(cmd))
- subprocess.check_call(cmd, stdout=sys.stderr, stderr=sys.stderr,
+ res = subprocess.run(cmd, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, check=True,
env={'LC_ALL': 'C.UTF-8'}, timeout=600)
+ logging.debug("unpacking exited with %d status code. STDOUT/STDERR: %s" %
(res.returncode, res.stdout))
def diff(diffdir_org, diffdir, builddir, output):
diffdir_org = os.path.basename(diffdir_org)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/cf8affe1576cb9dc3e8ac0561a51c4e88c7b0b85
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit