Changeset 087be8c in rtems-tools


Ignore:
Timestamp:
Nov 5, 2018, 4:37:49 AM (6 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
e058db0
Parents:
92a340c
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/version.py

    r92a340c r087be8c  
    172172                                                                              ver))
    173173            try:
    174                 _revision = int(''.join(itertools.takewhile(str.isdigit, rev)))
     174                _revision = int(''.join(itertools.takewhile(str.isdigit, str(rev))))
    175175            except Exception as e:
    176176                raise error.general('Invalid revision config value: %s: %s: %s' % (vc,
Note: See TracChangeset for help on using the changeset viewer.