mirror of
https://git.rtems.org/rtems-docs/
synced 2025-07-22 18:35:32 +08:00
Fix the version logic to make it more robust.
This commit is contained in:
parent
a3b0a40880
commit
6f18d69633
@ -90,6 +90,9 @@ def get(ctx, rtems_major_version):
|
||||
global _version
|
||||
global _date
|
||||
global _released
|
||||
version = _version
|
||||
date = _date
|
||||
released = _released
|
||||
if _version == 'invalid':
|
||||
version = rtems_major_version
|
||||
date = _date
|
||||
@ -135,7 +138,7 @@ def get(ctx, rtems_major_version):
|
||||
_version = version
|
||||
_date = date
|
||||
_release = released
|
||||
return version, date
|
||||
return version, date, released
|
||||
|
||||
def string():
|
||||
return '%s (%s)' % (_version, _date)
|
||||
|
Loading…
x
Reference in New Issue
Block a user