Quantcast
Channel: [EN] OpenPLi Third-Party Development
Viewing all articles
Browse latest Browse all 1691

Driver date not correct.

$
0
0

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?


Viewing all articles
Browse latest Browse all 1691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>