[Pkg-mozext-commits] [adblock-plus] 15/22: Issue 2254 - Ignore stderr when jsdoc completes successfull

David Prévot taffit at moszumanska.debian.org
Wed Apr 1 19:35:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository adblock-plus.

commit b58d0136cae1f57c624a8924d1be76a52383b709
Author: Sebastian Noack <sebastian at adblockplus.org>
Date:   Wed Apr 1 12:59:36 2015 +0200

    Issue 2254 - Ignore stderr when jsdoc completes successfull
---
 build.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/build.py b/build.py
index dec496a..3d9483f 100644
--- a/build.py
+++ b/build.py
@@ -374,7 +374,12 @@ def generateDocs(baseDir, scriptName, opts, args, type):
              '--access', 'all',
              os.path.join(baseDir, 'lib')]
   if any(opt in ('-q', '--quiet') for opt, _ in opts):
-    subprocess.check_output(command)
+    process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+    stderr = process.communicate()[1]
+    retcode = process.poll()
+    if retcode:
+      sys.stderr.write(stderr)
+      raise subprocess.CalledProcessError(command, retcode)
   else:
     subprocess.check_call(command)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git



More information about the Pkg-mozext-commits mailing list