1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 12:06:08 +00:00

utils/types: Update version_tuple to use strings

The versionName field of an apk allows for containing non-numerical
characters so update the type to be a string.
This commit is contained in:
Marc Bonnici 2020-01-14 13:07:12 +00:00
parent 24a4a032db
commit 164095e664

View File

@ -211,9 +211,9 @@ def regex(value):
def version_tuple(v):
"""
Converts a version string into a tuple of ints that can be used for natural comparison.
Converts a version string into a tuple of strings that can be used for natural comparison.
"""
return tuple(map(int, (v.split("."))))
return tuple(map(str, (v.split("."))))
__counters = defaultdict(int)