Jump to content


Photo

Driver date not correct.


  • Please log in to reply
3 replies to this topic

#1 Beeker

  • PLi® Contributor
  • 1,471 posts

+196
Excellent

Posted 15 May 2016 - 14:12

Since dreambox 8000 drivers are updated to 2014-06-04a, the driver date is not show correctly in information screen.

It is shown as something like:  0160-60-4a

The driver date has now 9 characters instead of 8.

So i made this patch.

diff --git a/lib/python/Components/About.py  b/ lib/python/Components/About.py 
index cb01383..508b0a2 100644
--- a/lib/python/Components/About.py 
+++ b/lib/python/Components/About.py 
@@ -77,7 +77,7 @@ def getCPUInfoString():
 def getDriverInstalledDate():
 	try:
 		from glob import glob
-		driver = [x.split("-")[-2:-1][0][-8:] for x in open(glob("/var/lib/opkg/info/*-dvb-modules-*.control")[0], "r") if x.startswith("Version:")][0]
+		driver = [x.split("-")[-2:-1][0][-9:] for x in open(glob("/var/lib/opkg/info/*-dvb-modules-*.control")[0], "r") if x.startswith("Version:")][0]
 		return  "%s-%s-%s" % (driver[:4], driver[4:6], driver[6:])
 	except:
 		return _("unknown")

So far so good for dm8000,but it probably breaks the driver version for other boxes. I have a dreambox only, so i cant test it.

If something prepared to test it for other boxes or known a better option?....It can be include it the enigma2 git repo?


DM920, Gigablue UHD TRIO 4K and DM8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.

Re: Driver date not correct. #2 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 15 May 2016 - 14:25

This give some unwanted results if the date is not 9 positions, like on the solo2 it then shows: +201-51-201



Re: Driver date not correct. #3 Beeker

  • PLi® Contributor
  • 1,471 posts

+196
Excellent

Posted 15 May 2016 - 14:27

I though so...thanks for testing.


DM920, Gigablue UHD TRIO 4K and DM8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.

Re: Driver date not correct. #4 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 15 May 2016 - 14:34

Also consider solo4k (/var/lib/opkg/info/vuplus-dvb-proxy-vusolo4k.control)

Version: 3.14.28-20160412.r0

>>> import re
>>> re.split(": |-|\.r","Version: 3.14.28-20160412.r0")
['Version', '3.14.28', '20160412', '0']

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users