diff options
author | hschang <chang@dev3> | 2018-09-27 07:36:21 (GMT) |
---|---|---|
committer | hschang <chang@dev3> | 2018-09-27 07:36:21 (GMT) |
commit | e6d94c29012c6eb9f7655ce9d8365485b852aa35 (patch) | |
tree | e2ff1dafb62d833e5fbe45cd7ac42e9b722b94cc /meta-openvuplus | |
parent | 989bef00bdae174eae9e58f92d1421105f1f692d (diff) |
[dvbapp] update & fix patch files.
Diffstat (limited to 'meta-openvuplus')
3 files changed, 149 insertions, 90 deletions
diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2.bb b/meta-openvuplus/recipes-vuplus/enigma2/enigma2.bb index 879c00f..f9e7acc 100644 --- a/meta-openvuplus/recipes-vuplus/enigma2/enigma2.bb +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2.bb @@ -233,7 +233,7 @@ DEPENDS += "${@base_contains("VUPLUS_FEATURES", "uianimation", "libgles libvugle RDEPENDS_${PN}_append_vuplus += "${@base_contains("VUPLUS_FEATURES", "uianimation", "libvugles2" , "", d)}" PN = "enigma2" -PR = "r182" +PR = "r183" inherit gitpkgv pythonnative @@ -255,7 +255,6 @@ SRC_URI = "git://code.vuplus.com/git/dvbapp.git;protocol=http;branch=${BRANCH};r file://enigma2_vuplus_proc_oom_score_adj.patch \ file://enigma2_vuplus_fix_standby_name.patch \ file://enigma2_vuplus_disable_subtitle_sync_mode_bug.patch \ - file://enigma2_vuplus_networksetup_update_ifaces.patch \ file://spinner \ file://number_key \ " diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_networksetup.patch b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_networksetup.patch index 54bdfe3..fce0733 100644 --- a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_networksetup.patch +++ b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_networksetup.patch @@ -1,45 +1,152 @@ diff --git a/lib/python/Screens/NetworkSetup.py b/lib/python/Screens/NetworkSetup.py -index 32b9f54..b31ba3a 100755 +index 2ea9b50..d24170d 100755 --- a/lib/python/Screens/NetworkSetup.py +++ b/lib/python/Screens/NetworkSetup.py -@@ -60,7 +60,11 @@ class NetworkAdapterSelection(Screen,HelpableScreen): - "yellow": (self.setDefaultInterface, [_("Set interface as default Interface"),_("* Only available if more than one interface is active.")] ), - }) - -- self.adapters = [(iNetwork.getFriendlyAdapterName(x),x) for x in iNetwork.getAdapterList()] -+ self.adapters = [] -+ self.adapterList = [(iNetwork.getFriendlyAdapterName(x),x) for x in iNetwork.getAdapterList()] -+ for x in self.adapterList: -+ if x[1].startswith('eth'): -+ self.adapters.append(x) - - if not self.adapters: - self.adapters = [(iNetwork.getFriendlyAdapterName(x),x) for x in iNetwork.getConfiguredAdapters()] -@@ -98,7 +102,12 @@ class NetworkAdapterSelection(Screen,HelpableScreen): - else: - interfacepng = LoadPixmap(resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/icons/network_wireless.png")) - -- num_configured_if = len(iNetwork.getConfiguredAdapters()) -+# num_configured_if = len(iNetwork.getConfiguredAdapters()) -+ num_configured_if=0 -+ for x in iNetwork.getConfiguredAdapters(): -+ if x.startswith('eth'): -+ num_configured_if+=1 -+ - if num_configured_if >= 2: - if default is True: - defaultpng = LoadPixmap(cached=True, path=resolveFilename(SCOPE_CURRENT_SKIN, "skin_default/buttons/button_blue.png")) -@@ -116,7 +125,12 @@ class NetworkAdapterSelection(Screen,HelpableScreen): - def updateList(self): - self.list = [] - default_gw = None -- num_configured_if = len(iNetwork.getConfiguredAdapters()) -+# num_configured_if = len(iNetwork.getConfiguredAdapters()) -+ num_configured_if=0 -+ for x in iNetwork.getConfiguredAdapters(): -+ if x.startswith('eth'): -+ num_configured_if+=1 +@@ -23,6 +23,21 @@ from enigma import eTimer, ePoint, eSize, RT_HALIGN_LEFT, eListboxPythonMultiCon + from os import path as os_path, system as os_system, unlink + from re import compile as re_compile, search as re_search + ++def stopWlanConsole(): ++ try: ++ from Plugins.SystemPlugins.WirelessLanSetup.Wlan import iStatus ++ except ImportError: ++ pass ++ else: ++ iStatus.stopWlanConsole() + - if num_configured_if >= 2: - self["key_yellow"].setText(_("Default")) - self["introduction"].setText(self.defaulttext) ++def getDataForWlanIface(iface, callback): ++ try: ++ from Plugins.SystemPlugins.WirelessLanSetup.Wlan import iStatus ++ iStatus.getDataForInterface(iface, callback) ++ except: ++ return False ++ return True + + class NetworkAdapterSelection(Screen,HelpableScreen): + def __init__(self, session): +@@ -413,7 +428,7 @@ class AdapterSetup(Screen, ConfigListScreen, HelpableScreen): + self.default = None + + if iNetwork.isWirelessInterface(self.iface): +- from Plugins.SystemPlugins.WirelessLan.Wlan import wpaSupplicant ++ from Plugins.SystemPlugins.WirelessLanSetup.Wlan import wpaSupplicant + self.ws = wpaSupplicant() + self.encryptionlist = [] + self.encryptionlist.append(("Unencrypted", _("Unencrypted"))) +@@ -766,7 +781,7 @@ class AdapterSetupConfiguration(Screen, HelpableScreen): + if self["menulist"].getCurrent()[1] == 'edit': + if iNetwork.isWirelessInterface(self.iface): + try: +- from Plugins.SystemPlugins.WirelessLan.plugin import WlanScan ++ from Plugins.SystemPlugins.WirelessLanSetup.plugin import WlanScan + except ImportError: + self.session.open(MessageBox, self.missingwlanplugintxt, type = MessageBox.TYPE_INFO,timeout = 10 ) + else: +@@ -782,7 +797,7 @@ class AdapterSetupConfiguration(Screen, HelpableScreen): + self.session.open(NameserverSetup) + if self["menulist"].getCurrent()[1] == 'scanwlan': + try: +- from Plugins.SystemPlugins.WirelessLan.plugin import WlanScan ++ from Plugins.SystemPlugins.WirelessLanSetup.plugin import WlanScan + except ImportError: + self.session.open(MessageBox, self.missingwlanplugintxt, type = MessageBox.TYPE_INFO,timeout = 10 ) + else: +@@ -792,7 +807,7 @@ class AdapterSetupConfiguration(Screen, HelpableScreen): + self.showErrorMessage() # Display Wlan not available Message + if self["menulist"].getCurrent()[1] == 'wlanstatus': + try: +- from Plugins.SystemPlugins.WirelessLan.plugin import WlanStatus ++ from Plugins.SystemPlugins.WirelessLanSetup.plugin import WlanStatus + except ImportError: + self.session.open(MessageBox, self.missingwlanplugintxt, type = MessageBox.TYPE_INFO,timeout = 10 ) + else: +@@ -856,13 +871,9 @@ class AdapterSetupConfiguration(Screen, HelpableScreen): + self["Statustext"].setText(_("Link:")) + + if iNetwork.isWirelessInterface(self.iface): +- try: +- from Plugins.SystemPlugins.WirelessLan.Wlan import iStatus +- except: ++ if not getDataForWlanIface(self.iface, self.getInfoCB): + self["statuspic"].setPixmapNum(1) + self["statuspic"].show() +- else: +- iStatus.getDataForInterface(self.iface,self.getInfoCB) + else: + iNetwork.getLinkState(self.iface,self.dataAvail) + +@@ -907,7 +918,7 @@ class AdapterSetupConfiguration(Screen, HelpableScreen): + if ret is not None and len(ret): + if ret[0] == 'ok' and (iNetwork.isWirelessInterface(self.iface) and iNetwork.getAdapterAttribute(self.iface, "up") is True): + try: +- from Plugins.SystemPlugins.WirelessLan.plugin import WlanStatus ++ from Plugins.SystemPlugins.WirelessLanSetup.plugin import WlanStatus + except ImportError: + self.session.open(MessageBox, self.missingwlanplugintxt, type = MessageBox.TYPE_INFO,timeout = 10 ) + else: +@@ -922,16 +933,14 @@ class AdapterSetupConfiguration(Screen, HelpableScreen): + + def WlanStatusClosed(self, *ret): + if ret is not None and len(ret): +- from Plugins.SystemPlugins.WirelessLan.Wlan import iStatus +- iStatus.stopWlanConsole() ++ stopWlanConsole() + self.updateStatusbar() + + def WlanScanClosed(self,*ret): + if ret[0] is not None: + self.session.openWithCallback(self.AdapterSetupClosed, AdapterSetup, self.iface,ret[0]) + else: +- from Plugins.SystemPlugins.WirelessLan.Wlan import iStatus +- iStatus.stopWlanConsole() ++ stopWlanConsole() + self.updateStatusbar() + + def restartLan(self, ret = False): +@@ -975,12 +984,7 @@ class AdapterSetupConfiguration(Screen, HelpableScreen): + iNetwork.stopDeactivateInterfaceConsole() + iNetwork.stopActivateInterfaceConsole() + iNetwork.stopPingConsole() +- try: +- from Plugins.SystemPlugins.WirelessLan.Wlan import iStatus +- except ImportError: +- pass +- else: +- iStatus.stopWlanConsole() ++ stopWlanConsole() + + def getInfoCB(self,data,status): + self.LinkState = None +@@ -1343,15 +1347,11 @@ class NetworkAdapterTest(Screen): + + def getLinkState(self,iface): + if iface in iNetwork.wlan_interfaces: +- try: +- from Plugins.SystemPlugins.WirelessLan.Wlan import iStatus +- except: +- self["Network"].setForegroundColorNum(1) +- self["Network"].setText(_("disconnected")) +- self["NetworkInfo_Check"].setPixmapNum(1) +- self["NetworkInfo_Check"].show() +- else: +- iStatus.getDataForInterface(self.iface,self.getInfoCB) ++ if not getDataForWlanIface(self.iface, self.getInfoCB): ++ self["Network"].setForegroundColorNum(1) ++ self["Network"].setText(_("disconnected")) ++ self["NetworkInfo_Check"].setPixmapNum(1) ++ self["NetworkInfo_Check"].show() + else: + iNetwork.getLinkState(iface,self.LinkStatedataAvail) + +@@ -1425,10 +1425,5 @@ class NetworkAdapterTest(Screen): + def cleanup(self): + iNetwork.stopLinkStateConsole() + iNetwork.stopDNSConsole() +- try: +- from Plugins.SystemPlugins.WirelessLan.Wlan import iStatus +- except ImportError: +- pass +- else: +- iStatus.stopWlanConsole() ++ stopWlanConsole() + diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_networksetup_update_ifaces.patch b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_networksetup_update_ifaces.patch deleted file mode 100644 index 1e3d9b4..0000000 --- a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_networksetup_update_ifaces.patch +++ /dev/null @@ -1,47 +0,0 @@ -diff --git a/lib/python/Screens/NetworkSetup.py b/lib/python/Screens/NetworkSetup.py -index 53301ae..5ceaedd 100755 ---- a/lib/python/Screens/NetworkSetup.py -+++ b/lib/python/Screens/NetworkSetup.py -@@ -327,8 +327,6 @@ class AdapterSetup(Screen, ConfigListScreen, HelpableScreen): - self.oktext = _("Press OK on your remote control to continue.") - self.oldInterfaceState = iNetwork.getAdapterAttribute(self.iface, "up") - -- self.createConfig() -- - self["OkCancelActions"] = HelpableActionMap(self, "OkCancelActions", - { - "cancel": (self.keyCancel, _("exit network adapter configuration")), -@@ -347,7 +345,6 @@ class AdapterSetup(Screen, ConfigListScreen, HelpableScreen): - - self.list = [] - ConfigListScreen.__init__(self, self.list,session = self.session) -- self.createSetup() - self.onLayoutFinish.append(self.layoutFinished) - self.onClose.append(self.cleanup) - -@@ -375,7 +372,14 @@ class AdapterSetup(Screen, ConfigListScreen, HelpableScreen): - self["HelpWindow"] = Pixmap() - self["HelpWindow"].hide() - -- def layoutFinished(self): -+ def updateInterfaces(self,callback = None): -+ iNetwork.config_ready = False -+ iNetwork.msgPlugins() -+ iNetwork.getInterfaces(callback) -+ -+ def updateInterfaceCB(self, ret=None): -+ self.createConfig() -+ self.createSetup() - self["DNS1"].setText(self.primaryDNS.getText()) - self["DNS2"].setText(self.secondaryDNS.getText()) - if self.ipConfigEntry.getText() is not None: -@@ -404,6 +408,9 @@ class AdapterSetup(Screen, ConfigListScreen, HelpableScreen): - self["Gatewaytext"].setText("") - self["Adapter"].setText(iNetwork.getFriendlyAdapterName(self.iface)) - -+ def layoutFinished(self): -+ self.updateInterfaces(self.updateInterfaceCB) -+ - def createConfig(self): - self.InterfaceEntry = None - self.dhcpEntry = None |