rtemstoolkit: Fix the parsing of the revision string to a number.

Fix provided by Amar on the user list:

 https://lists.rtems.org/pipermail/users/2018-October/032714.html
This commit is contained in:
Chris Johns
2018-11-05 15:37:49 +11:00
parent 92a340c305
commit 087be8c67f

View File

@@ -171,7 +171,7 @@ def _load_released_version():
raise error.general('Invalid version config value: %s: %s' % (vc,
ver))
try:
_revision = int(''.join(itertools.takewhile(str.isdigit, rev)))
_revision = int(''.join(itertools.takewhile(str.isdigit, str(rev))))
except Exception as e:
raise error.general('Invalid revision config value: %s: %s: %s' % (vc,
rev,