X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FPlugins%2FSystemPlugins%2FSoftwareManager%2FSoftwareTools.py;h=7c508f9be81457f6c4890993c3b7ea6f88708633;hp=ee0bec74320f84a6403bdc53090966db25eab88e;hb=e19feb6903e6054302080ae40d2bcfa5c2d1628e;hpb=7dd3be2ced167827d6e2555a23e98304a10640bc diff --git a/lib/python/Plugins/SystemPlugins/SoftwareManager/SoftwareTools.py b/lib/python/Plugins/SystemPlugins/SoftwareManager/SoftwareTools.py index ee0bec7..7c508f9 100755 --- a/lib/python/Plugins/SystemPlugins/SoftwareManager/SoftwareTools.py +++ b/lib/python/Plugins/SystemPlugins/SoftwareManager/SoftwareTools.py @@ -101,7 +101,7 @@ class SoftwareTools(DreamInfoHandler): def getUpdates(self, callback = None): if self.lastDownloadDate is None: - if self.hardware_info.device_name != "dm7025": + if self.hardware_info.device_name != "dm500hd": 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) - if self.hardware_info.device_name == "dm7025" 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: @@ -159,7 +159,7 @@ class SoftwareTools(DreamInfoHandler): self.NotifierCallback = callback else: if self.list_updating and callback is not None: - if self.hardware_info.device_name != "dm7025": + if self.hardware_info.device_name != "dm500hd": 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) - if self.hardware_info.device_name == "dm7025" or result[80:88] == rnd: + if self.hardware_info.device_name == "dm500hd" or result[80:88] == rnd: self.NotifierCallback = callback self.startIpkgListAvailable() else: @@ -205,7 +205,7 @@ class SoftwareTools(DreamInfoHandler): if self.list_updating: if not self.UpdateConsole: self.UpdateConsole = Console() - cmd = "ipkg list" + cmd = "opkg list" self.UpdateConsole.ePopen(cmd, self.IpkgListAvailableCB, callback) def IpkgListAvailableCB(self, result, retval, extra_args = None): @@ -241,7 +241,7 @@ class SoftwareTools(DreamInfoHandler): if self.NetworkConnectionAvailable == True: if not self.UpdateConsole: self.UpdateConsole = Console() - cmd = "ipkg install enigma2-meta enigma2-plugins-meta enigma2-skins-meta" + cmd = "opkg install enigma2-meta enigma2-plugins-meta enigma2-skins-meta" self.UpdateConsole.ePopen(cmd, self.InstallMetaPackageCB, callback) else: self.InstallMetaPackageCB(True) @@ -264,13 +264,12 @@ class SoftwareTools(DreamInfoHandler): callback(False) def startIpkgListInstalled(self, callback = None): - print "STARTIPKGLISTINSTALLED" if callback is not None: self.list_updating = True if self.list_updating: if not self.UpdateConsole: self.UpdateConsole = Console() - cmd = "ipkg list_installed" + cmd = "opkg list-installed" self.UpdateConsole.ePopen(cmd, self.IpkgListInstalledCB, callback) def IpkgListInstalledCB(self, result, retval, extra_args = None): @@ -331,7 +330,7 @@ class SoftwareTools(DreamInfoHandler): def startIpkgUpdate(self, callback = None): if not self.Console: self.Console = Console() - cmd = "ipkg update" + cmd = "opkg update" self.Console.ePopen(cmd, self.IpkgUpdateCB, callback) def IpkgUpdateCB(self, result, retval, extra_args = None): @@ -344,6 +343,7 @@ class SoftwareTools(DreamInfoHandler): callback = None def cleanupSoftwareTools(self): + self.list_updating = False if self.NotifierCallback is not None: self.NotifierCallback = None self.ipkg.stop() @@ -366,4 +366,4 @@ class SoftwareTools(DreamInfoHandler): return False return True -iSoftwareTools = SoftwareTools() \ No newline at end of file +iSoftwareTools = SoftwareTools()