ensure that we aren't doing string comparison against floats
Some version numbers look like floats, so the YAML parser converts them. Fix list-changes to always force the version to a string when we are about to do a string comparison. Change-Id: Ifd695164e3a554388a8818e37d43283a5cd6a44e Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
d36a0d531b
commit
654081ac3b
@ -199,7 +199,7 @@ def main():
|
||||
# the project does not use milestones.
|
||||
if not uses_milestones:
|
||||
for pre_indicator in ['a', 'b', 'rc']:
|
||||
if pre_indicator in new_release['version']:
|
||||
if pre_indicator in str(new_release['version']):
|
||||
print(('WARNING: %s looks like a pre-release '
|
||||
'but %s does not use milestones') %
|
||||
(new_release['version'], deliverable_name))
|
||||
|
Loading…
Reference in New Issue
Block a user