From: Holger Levsen Date: Wed, 31 Aug 2011 18:24:10 +0000 (+0200) Subject: awk X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=4ff0c3550767a9ed3c91bbc042d135e95c2af1c1;p=profitbricks%2Fjenkins-build-scripts.git awk --- diff --git a/build.py b/build.py index 8c2eddf..dca3159 100755 --- a/build.py +++ b/build.py @@ -363,7 +363,8 @@ if __name__ == '__main__': logger.info(stdout_msg) # i hate this: a version needs to include a . now... - cmd = ['grep-dctrl', '-n', '-s', "Version '.'"] + #cmd = ['grep-dctrl', '-n', '-s', 'Version', '.'] + cmd = [ 'awk', "'/^Version: / {print $2}'"] grep_dctrl = subprocess.Popen( cmd, shell=False,