Skip to content
Snippets Groups Projects
Commit 60fd594e authored by Haibo Huang's avatar Haibo Huang Committed by android-build-merger
Browse files

[Updater] Better tolerate bad config am: 904d2087

am: 3d655fce

Change-Id: If76780f716a36a9214f0c38adbacbf3d897f9748
parents 4896a435 3d655fce
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): ...@@ -80,10 +80,9 @@ def _match_and_get_version(prefix, suffix, version):
except ValueError: except ValueError:
return [] return []
if version_prefix != prefix or version_suffix != suffix: right_format = (version_prefix == prefix and version_suffix == suffix)
return []
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): 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