]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
last try
authorHolger Levsen <holger@layer-acht.org>
Wed, 31 Aug 2011 18:27:34 +0000 (20:27 +0200)
committerHolger Levsen <holger@layer-acht.org>
Wed, 31 Aug 2011 18:27:34 +0000 (20:27 +0200)
build.py

index 33f590cde5b85f9bef73c0828f36acb668f64479..99dc18dc016d201467c4058be7309a1a979511e9 100755 (executable)
--- a/build.py
+++ b/build.py
@@ -364,7 +364,7 @@ if __name__ == '__main__':
 
        # i hate this: a version needs to include a . now...
        #cmd = ['grep-dctrl', '-n', '-s', 'Version', '.']
-       cmd = [ 'awk', '/^Version: / {print $2}']
+       cmd = [ 'awk', '/^Version: /', '{print $2}']
        grep_dctrl =  subprocess.Popen(
                 cmd,
                 shell=False,