Change boxtype to 500hd
authorschon <schon@dev03-server>
Mon, 13 Dec 2010 10:01:52 +0000 (19:01 +0900)
committerschon <schon@dev03-server>
Mon, 13 Dec 2010 10:01:52 +0000 (19:01 +0900)
lib/python/Plugins/SystemPlugins/SoftwareManager/SoftwareTools.py

index fa0f658..055d6ba 100755 (executable)
@@ -101,7 +101,7 @@ class SoftwareTools(DreamInfoHandler):
 
        def getUpdates(self, callback = None):
                if self.lastDownloadDate is None:
 
        def getUpdates(self, callback = None):
                if self.lastDownloadDate is None:
-                       if  self.hardware_info.device_name != "dm7020hd":
+                       if  self.hardware_info.device_name != "dm500hd":
                                etpm = eTPM()
                                l2cert = etpm.getCert(eTPM.TPMD_DT_LEVEL2_CERT)
                                if l2cert is None:
                                etpm = eTPM()
                                l2cert = etpm.getCert(eTPM.TPMD_DT_LEVEL2_CERT)
                                if l2cert is None:
@@ -120,7 +120,7 @@ class SoftwareTools(DreamInfoHandler):
                                        return
                                val = etpm.challenge(rnd)
                                result = decrypt_block(val, l3key)
                                        return
                                val = etpm.challenge(rnd)
                                result = decrypt_block(val, l3key)
-                       if self.hardware_info.device_name == "dm7020hd" or result[80:88] == rnd:
+                       if self.hardware_info.device_name == "dm500hd" or result[80:88] == rnd:
                                if self.NetworkConnectionAvailable == True:
                                        self.lastDownloadDate = time()
                                        if self.list_updating is False and callback is None:
                                if self.NetworkConnectionAvailable == True:
                                        self.lastDownloadDate = time()
                                        if self.list_updating is False and callback is None:
@@ -159,7 +159,7 @@ class SoftwareTools(DreamInfoHandler):
                                        self.NotifierCallback = callback
                        else:
                                if self.list_updating and callback is not None:
                                        self.NotifierCallback = callback
                        else:
                                if self.list_updating and callback is not None:
-                                       if  self.hardware_info.device_name != "dm7020hd":
+                                       if  self.hardware_info.device_name != "dm500hd":
                                                etpm = eTPM()
                                                l2cert = etpm.getCert(eTPM.TPMD_DT_LEVEL2_CERT)
                                                if l2cert is None:
                                                etpm = eTPM()
                                                l2cert = etpm.getCert(eTPM.TPMD_DT_LEVEL2_CERT)
                                                if l2cert is None:
@@ -178,7 +178,7 @@ class SoftwareTools(DreamInfoHandler):
                                                        return
                                                val = etpm.challenge(rnd)
                                                result = decrypt_block(val, l3key)
                                                        return
                                                val = etpm.challenge(rnd)
                                                result = decrypt_block(val, l3key)
-                                       if self.hardware_info.device_name == "dm7020hd" or result[80:88] == rnd:
+                                       if self.hardware_info.device_name == "dm500hd" or result[80:88] == rnd:
                                                self.NotifierCallback = callback
                                                self.startIpkgListAvailable()
                                else:   
                                                self.NotifierCallback = callback
                                                self.startIpkgListAvailable()
                                else: