summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2019-02-07 08:46:53 +1100
committerChris Johns <chrisj@rtems.org>2019-02-07 08:46:53 +1100
commit6f18d6963311896c54a9353c7e02c14bbc1b3e6d (patch)
tree591dd85d5ebc79729dfcd146ccf382a682fe6897 /common
parenta3b0a40880c80dec607377b15d6a9d2223e8f9e3 (diff)
downloadrtems-docs-6f18d6963311896c54a9353c7e02c14bbc1b3e6d.tar.bz2
Fix the version logic to make it more robust.
Diffstat (limited to 'common')
-rw-r--r--common/version.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/version.py b/common/version.py
index ad19eaf..3ba9454 100644
--- a/common/version.py
+++ b/common/version.py
@@ -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)