chiark / gitweb /
Make use of Popen.wait() return value
authorDaniel Martí <mvdan@mvdan.cc>
Sun, 10 Aug 2014 10:28:19 +0000 (12:28 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Sun, 10 Aug 2014 10:28:19 +0000 (12:28 +0200)
fdroidserver/common.py

index d3f45800678c2722ba178f818b52ca31f292dda5..1e532da5ece808a6f62631ceb770769e7a2285f8 100644 (file)
@@ -1670,8 +1670,7 @@ def FDroidPopen(commands, cwd=None, shell=False, output=True):
 
         time.sleep(0.1)
 
-    p.wait()
-    result.returncode = p.returncode
+    result.returncode = p.wait()
     return result