Commits

ZyX_I committed 2834642 Merge

Merge

  • Participants
  • Parent commits 4029bd9, 44f5ddc
  • Branches bzr-support

Comments (0)

Files changed (1)

File python/aurum/utils.py

 # XXX This should throw an exception if it is unusable
 from subprocess import Popen, PIPE
+from sys import stderr
 def readsystem(cmd, cwd=None):
     if not cwd:
         cwd=None
-    p=Popen(cmd, shell=False, stdout=PIPE, cwd=cwd)
+    p=Popen(cmd, shell=False, stdout=PIPE, stderr=PIPE, cwd=cwd)
     lines=[]
     lastnl=False
     for line in p.stdout:
     if lastnl:
         lines.append('')
     exit_code=p.poll()
+    stderr.write(p.stderr.read())
     return lines, exit_code
 # vim: ft=python ts=4 sw=4 sts=4 et tw=100