[dvbapp] update & fix patch files.
authorhschang <chang@dev3>
Thu, 27 Sep 2018 07:36:21 +0000 (16:36 +0900)
committerhschang <chang@dev3>
Thu, 27 Sep 2018 07:36:21 +0000 (16:36 +0900)
meta-bsp/recipes-vuplus/enigma2/enigma2.bbappend
meta-bsp/recipes-vuplus/enigma2/enigma2/enigma2_network_sys0.patch [deleted file]
meta-openvuplus/recipes-vuplus/enigma2/enigma2.bb
meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_networksetup.patch
meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_networksetup_update_ifaces.patch [deleted file]

index 4028df1..07d6df3 100644 (file)
@@ -1,6 +1,6 @@
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
-PR .= "-bsp27"
+PR .= "-bsp28"
 
 SRC_URI_append_vusolo = " \
        file://enigma2_vuplus_misc.patch \
 
 SRC_URI_append_vusolo = " \
        file://enigma2_vuplus_misc.patch \
@@ -31,7 +31,6 @@ SRC_URI_append_vusolo4k = " \
 SRC_URI_append_vuultimo4k = " \
        file://skin_user_vuultimo4k.xml \
        file://lcd_icons_vuultimo4k \
 SRC_URI_append_vuultimo4k = " \
        file://skin_user_vuultimo4k.xml \
        file://lcd_icons_vuultimo4k \
-       file://enigma2_network_sys0.patch \
 "
 
 SRC_URI_append_vuuno4k = " \
 "
 
 SRC_URI_append_vuuno4k = " \
diff --git a/meta-bsp/recipes-vuplus/enigma2/enigma2/enigma2_network_sys0.patch b/meta-bsp/recipes-vuplus/enigma2/enigma2/enigma2_network_sys0.patch
deleted file mode 100644 (file)
index 1f00995..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-diff --git a/lib/python/Components/Network.py b/lib/python/Components/Network.py
-index c39d1ba..ce09f43 100755
---- a/lib/python/Components/Network.py
-+++ b/lib/python/Components/Network.py
-@@ -46,7 +46,7 @@ class Network:
-               return self.remoteRootFS
-       def isBlacklisted(self, iface):
--              return iface in ('lo', 'wifi0', 'wmaster0')
-+              return iface in ('lo', 'wifi0', 'wmaster0', 'sys0')
-       def getInterfaces(self, callback = None):
-               self.configuredInterfaces = []
-@@ -90,7 +90,7 @@ class Network:
-               
-               for line in result.splitlines():
-                       split = line.strip().split(' ',2)
--                      if (split[1][:-1] == iface):
-+                      if (split[1][:-1] == iface) or (split[1][:-1] == (iface + '@sys0')):
-                               up = self.regExpMatch(upPattern, split[2])
-                               mac = self.regExpMatch(macPattern, self.regExpMatch(macLinePattern, split[2]))
-                               if up is not None:
index 879c00f..f9e7acc 100644 (file)
@@ -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"
 RDEPENDS_${PN}_append_vuplus += "${@base_contains("VUPLUS_FEATURES", "uianimation", "libvugles2" , "", d)}"
 
 PN = "enigma2"
-PR = "r182"
+PR = "r183"
 
 inherit gitpkgv pythonnative
 
 
 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_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 \
 "
        file://spinner \
        file://number_key \
 "
index 54bdfe3..fce0733 100644 (file)
 diff --git a/lib/python/Screens/NetworkSetup.py b/lib/python/Screens/NetworkSetup.py
 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
 --- 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 (file)
index 1e3d9b4..0000000
+++ /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