From 900f1eff4165f913a2781bc1b829d2b7f182cfe5 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 1 Sep 2011 10:22:34 +0200 Subject: [PATCH] true shell --- build.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/build.py b/build.py index a880847..fdc9ca9 100755 --- a/build.py +++ b/build.py @@ -358,18 +358,17 @@ if __name__ == '__main__': ) ret = parse_changelog.wait() - stdout_msg = parse_changelog.stdout.read() + #stdout_msg = parse_changelog.stdout.read() - logger.info(stdout_msg) + #logger.info(stdout_msg) # i hate this: a version needs to include a . now... - #cmd = ['grep-dctrl', '-n', '-s', 'Version', '.'] - cmd = [ "awk '/^Version: / {print $2}'"] + cmd = ['grep-dctrl', '-n', '-s', 'Version', ''] grep_dctrl = subprocess.Popen( cmd, shell=True, close_fds=True, - stdin=parse_changelog.stdout, + stdin=parse_changelog.stdout.read(), stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=os.getcwd() -- 2.39.5