]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
pipe correctly into subprocess
authorHolger Levsen <holger@layer-acht.org>
Sat, 17 Sep 2011 18:23:20 +0000 (20:23 +0200)
committerHolger Levsen <holger@layer-acht.org>
Sat, 17 Sep 2011 18:23:20 +0000 (20:23 +0200)
debian_build.py

index 80f3b794c63bb5a4af7fbf7c5fa05ce192ce6ecb..b940e7b39410d42f01a5bcaed4634db4a9577c29 100755 (executable)
@@ -363,11 +363,12 @@ if __name__ == '__main__':
                 cmd,
                 shell=False,
                 close_fds=True,
-                stdin=new_log,
+                stdin=subprocess.PIPE,
                 stdout=sys.stdout,
                 stderr=sys.stderr,
                 cwd=os.getcwd()
         )
+        dch.stdin.write(new_log)
         ret = dch.wait()
 
         if ret: