aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/About.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/python/Components/About.py b/lib/python/Components/About.py
index 58d67dc9..8e332e33 100644
--- a/lib/python/Components/About.py
+++ b/lib/python/Components/About.py
@@ -26,13 +26,14 @@ class About:
year = version[4:8]
month = version[8:10]
day = version[10:12]
+ date = '-'.join((year, month, day))
if image_type == '0':
image_type = "Release"
+ version = '.'.join((major, minor, revision))
+ return ' '.join((image_type, version, date))
else:
image_type = "Experimental"
- date = '-'.join((year, month, day))
- version = '.'.join((major, minor, revision))
- return ' '.join((image_type, version, date))
+ return ' '.join((image_type, date))
file.close()
except IOError:
pass