aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorghost <andreas.monzner@multimedia-labs.de>2009-11-20 13:06:50 +0100
committerghost <andreas.monzner@multimedia-labs.de>2009-11-20 13:07:07 +0100
commit86cf948ef24d915924d1903cac165f08bbb9caf7 (patch)
tree1a3bde09f434941a7b4d8e26da670533db1566b5 /lib/python/Components
parentaf92de73a0f40ca4a5d3026672b12345b71682cc (diff)
downloadenigma2-86cf948ef24d915924d1903cac165f08bbb9caf7.tar.gz
enigma2-86cf948ef24d915924d1903cac165f08bbb9caf7.zip
lib/python/Components/About.py: dont show version information for Experimental images.. only show date here..
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