[packages/rpm-build-tools] Hide rpmbuild output unless --verbose (rpmbuild default is RPMLOG_WARNING even in --quiet mode and i

arekm arekm at pld-linux.org
Wed Feb 24 13:22:35 CET 2021


commit cf8affe1576cb9dc3e8ac0561a51c4e88c7b0b85
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
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



More information about the pld-cvs-commit mailing list