mirror of
https://git.rtems.org/rtems-tools/
synced 2025-10-14 21:59:26 +08:00
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:
@@ -171,7 +171,7 @@ def _load_released_version():
|
|||||||
raise error.general('Invalid version config value: %s: %s' % (vc,
|
raise error.general('Invalid version config value: %s: %s' % (vc,
|
||||||
ver))
|
ver))
|
||||||
try:
|
try:
|
||||||
_revision = int(''.join(itertools.takewhile(str.isdigit, rev)))
|
_revision = int(''.join(itertools.takewhile(str.isdigit, str(rev))))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise error.general('Invalid revision config value: %s: %s: %s' % (vc,
|
raise error.general('Invalid revision config value: %s: %s: %s' % (vc,
|
||||||
rev,
|
rev,
|
||||||
|
Reference in New Issue
Block a user