wait before reading, to make sure we get it all

This commit is contained in:
Thomas Vander Stichele
2013-07-14 09:36:36 +02:00
parent 02397302c6
commit 888d3ffc2a

View File

@@ -319,6 +319,7 @@ class VersionGetter(object):
p = asyncsub.Popen(self._args,
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, close_fds=True)
p.wait()
output = asyncsub.recv_some(p, e=0, stderr=1)
vre = self._regexp.search(output)
if vre: