From: Holger Levsen Date: Sat, 17 Sep 2011 18:23:20 +0000 (+0200) Subject: pipe correctly into subprocess X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=8c204f2d712f1b5e23a6ccb5c89f72675481405e;p=profitbricks%2Fjenkins-build-scripts.git pipe correctly into subprocess --- diff --git a/debian_build.py b/debian_build.py index 80f3b79..b940e7b 100755 --- a/debian_build.py +++ b/debian_build.py @@ -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: