From: Holger Levsen Date: Thu, 1 Sep 2011 08:22:34 +0000 (+0200) Subject: true shell X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=900f1eff4165f913a2781bc1b829d2b7f182cfe5;p=profitbricks%2Fjenkins-build-scripts.git true shell --- 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()