diff options
| author | ghost <andreas.monzner@multimedia-labs.de> | 2009-12-03 17:56:03 +0100 |
|---|---|---|
| committer | ghost <andreas.monzner@multimedia-labs.de> | 2009-12-03 17:56:03 +0100 |
| commit | 0cb206d2c07cb9e4130e13234e3fd59b127421a8 (patch) | |
| tree | 07bcbcc638a6012d32b0574531cf0bd8304484ae /lib/python/Components/About.py | |
| parent | 99a717e9813eab30cd34f5da6f4a5ab6e791dc1f (diff) | |
| parent | e9272c492c7a3c7fd8a1225a4baa6bee2a02eea8 (diff) | |
| download | enigma2-0cb206d2c07cb9e4130e13234e3fd59b127421a8.tar.gz enigma2-0cb206d2c07cb9e4130e13234e3fd59b127421a8.zip | |
Merge branch 'master' into bug_245_record_playback_fixes
Diffstat (limited to 'lib/python/Components/About.py')
| -rw-r--r-- | lib/python/Components/About.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/python/Components/About.py b/lib/python/Components/About.py index bb2d7568..8e332e33 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 |
