Skip to content
Snippets Groups Projects
Commit 0dd71e00 authored by Eric S. Raymond's avatar Eric S. Raymond
Browse files

Change the filtering so standard error is not captured.

parent 7468a308
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ default_channels = "irc://chat.freenode.net/%(project)s,irc://chat.freenode.net/
# No user-serviceable parts below this line:
#
import os, sys, commands, socket, urllib
import os, sys, commands, socket, urllib, subprocess
from pipes import quote as shellquote
try:
import simplejson as json # Faster, also makes us Python-2.4-compatible
......@@ -370,8 +370,9 @@ def ship(extractor, commit, debug):
# This is where we apply filtering
if extractor.filtercmd:
data = do('%s %s' % (shellquote(extractor.filtercmd),
shellquote(json.dumps(metadata.__dict__))))
cmd = '%s %s' % (shellquote(extractor.filtercmd),
shellquote(json.dumps(metadata.__dict__)))
data = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE).stdout.read()
try:
metadata.__dict__.update(json.loads(data))
except ValueError:
......
......@@ -324,6 +324,9 @@ print json.dumps(metadata)
# end
</programlisting>
<para>Standard error is available to the hook for progress and
error messages.</para>
</refsect2>
</refsect1>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment