Strip whitespace when reading product.version (#470)
This commit is contained in:
parent
a69a015189
commit
d2e736b10a
@ -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().rstrip()
|
||||
m = re.match('(\d+)\.(\d+)\.(\d+)-?(.*)', contents)
|
||||
if m == None:
|
||||
raise Exception('Could not detremine product version')
|
||||
|
Loading…
Reference in New Issue
Block a user