diff --git a/tools/buildbot/generate_headers.py b/tools/buildbot/generate_headers.py index d904ba0a..c2d34944 100644 --- a/tools/buildbot/generate_headers.py +++ b/tools/buildbot/generate_headers.py @@ -50,7 +50,7 @@ def output_version_headers(): count, shorthash, longhash = get_git_version() with open(os.path.join(SourceFolder, 'product.version')) as fp: - contents = fp.read() + contents = fp.read().strip() m = re.match('(\d+)\.(\d+)\.(\d+)-?(.*)', contents) if m == None: raise Exception('Could not detremine product version')