summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Fedora Unity) <kanarip@fedoraunity.org>2008-04-25 13:58:16 (GMT)
committerJeroen van Meeuwen (Fedora Unity) <kanarip@fedoraunity.org>2008-04-25 13:58:16 (GMT)
commit6abec8436709e8c24ea330f40faaab8c1c041b96 (patch)
tree33a003882dd99522bb59a9ad1b56fd50eec0937d
parent8489d4a94432652f86a84730197600357283ef1d (diff)
downloadrevisor-6abec8436709e8c24ea330f40faaab8c1c041b96.zip
revisor-6abec8436709e8c24ea330f40faaab8c1c041b96.tar.gz
revisor-6abec8436709e8c24ea330f40faaab8c1c041b96.tar.xz
This guarantees better output in debugging mode
-rw-r--r--revisor/base.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/revisor/base.py b/revisor/base.py
index 9d65315..0848e04 100644
--- a/revisor/base.py
+++ b/revisor/base.py
@@ -1601,6 +1601,13 @@ class RevisorBase:
callback.parse_line(command, line)
except:
pass
+ if error == subprocess.PIPE:
+ try:
+ line = p1.stderr.readline()
+ if not line == "":
+ self.log.debug(line.strip())
+ except:
+ pass
else:
p1 = subprocess.Popen(command, cwd=rundir, stdout=output, stderr=error)
(out, err) = p1.communicate()