summaryrefslogtreecommitdiff
path: root/rtemstoolkit
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2018-11-05 15:37:49 +1100
committerChris Johns <chrisj@rtems.org>2018-11-05 15:37:49 +1100
commit087be8c67f04d9f3457e9c74a97e636bec202ead (patch)
tree8587e25c50cbf2f0da706eef153974e0dc2b30f4 /rtemstoolkit
parent92a340c30535f811dc04dcd4ae392047a653a6f3 (diff)
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
Diffstat (limited to 'rtemstoolkit')
-rw-r--r--rtemstoolkit/version.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtemstoolkit/version.py b/rtemstoolkit/version.py
index d538d2a..6f76c84 100644
--- a/rtemstoolkit/version.py
+++ b/rtemstoolkit/version.py
@@ -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,