X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FAbout.py;h=8e332e3381c85b8b5d565fc33caa92230e404e45;hb=721452bdbfe05409846dab5d183228ca2ca11ee5;hp=bb2d75686a0b20e499de9aaf7ca27f73e469b9d2;hpb=c46312d7f5ce4113ece4c33595b7192eccadcb1d;p=vuplus_dvbapp diff --git a/lib/python/Components/About.py b/lib/python/Components/About.py index bb2d756..8e332e3 100644 --- a/lib/python/Components/About.py +++ b/lib/python/Components/About.py @@ -19,11 +19,21 @@ class About: #0120 2005 11 29 01 16 #0123 4567 89 01 23 45 version = splitted[1] + image_type = version[0] # 0 = release, 1 = experimental + major = version[1] + minor = version[2] + revision = version[3] year = version[4:8] month = version[8:10] day = version[10:12] - - return '-'.join(("dev", year, month, day)) + 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" + return ' '.join((image_type, date)) file.close() except IOError: pass