Skip to content
Snippets Groups Projects
Commit 904d2087 authored by Haibo Huang's avatar Haibo Huang
Browse files

[Updater] Better tolerate bad config

Test: local run
Change-Id: Id22f9faee9241eeb1a77f7cbd79fe27f73c0350a
parent 38dda433
No related branches found
No related tags found
No related merge requests found
......@@ -80,10 +80,9 @@ def _match_and_get_version(prefix, suffix, version):
except ValueError:
return []
if version_prefix != prefix or version_suffix != suffix:
return []
right_format = (version_prefix == prefix and version_suffix == suffix)
return [int(v) for v in version.split('.')]
return [right_format] + [int(v) for v in version.split('.')]
def get_latest_version(current_version, version_list):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment