You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2013/06/09 08:27:47 UTC
svn commit: r1491146 -
/lucene/dev/trunk/dev-tools/scripts/buildAndPushRelease.py
Author: shalin
Date: Sun Jun 9 06:27:46 2013
New Revision: 1491146
URL: http://svn.apache.org/r1491146
Log:
Flush subprocess stdout before trying to read from it
Modified:
lucene/dev/trunk/dev-tools/scripts/buildAndPushRelease.py
Modified: lucene/dev/trunk/dev-tools/scripts/buildAndPushRelease.py
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/dev-tools/scripts/buildAndPushRelease.py?rev=1491146&r1=1491145&r2=1491146&view=diff
==============================================================================
--- lucene/dev/trunk/dev-tools/scripts/buildAndPushRelease.py (original)
+++ lucene/dev/trunk/dev-tools/scripts/buildAndPushRelease.py Sun Jun 9 06:27:46 2013
@@ -49,6 +49,7 @@ def runAndSendGPGPassword(command, passw
p = subprocess.Popen(command, shell=True, bufsize=0, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, stdin=subprocess.PIPE)
f = open(LOG, 'ab')
while True:
+ p.stdout.flush()
line = p.stdout.readline()
if len(line) == 0:
break