chiark / gitweb /
Use p.wait() instead of p.communicate()
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 9 Jul 2014 17:22:39 +0000 (19:22 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Wed, 9 Jul 2014 17:22:39 +0000 (19:22 +0200)
The latter calls the former anyway, and we don't need to fetch the output nor
send any stdin.

fdroidserver/common.py

index 285ffe208a4941e88ff49b5d8c43e4b0188640b5..663af8b1485cc90412c4e0a84f29fb41e9f2d591 100644 (file)
@@ -1681,7 +1681,7 @@ def FDroidPopen(commands, cwd=None, shell=False, output=True):
 
         time.sleep(0.1)
 
-    p.communicate()
+    p.wait()
     result.returncode = p.returncode
     return result