add missing file.
authorkos <kos@dev3>
Fri, 28 Dec 2012 09:35:43 +0000 (18:35 +0900)
committerkos <kos@dev3>
Fri, 28 Dec 2012 09:35:43 +0000 (18:35 +0900)
meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_pluginbrowser.patch [new file with mode: 0644]

diff --git a/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_pluginbrowser.patch b/meta-openvuplus/recipes-vuplus/enigma2/enigma2/enigma2_vuplus_pluginbrowser.patch
new file mode 100644 (file)
index 0000000..25ebe95
--- /dev/null
@@ -0,0 +1,29 @@
+diff --git a/lib/python/Screens/PluginBrowser.py b/lib/python/Screens/PluginBrowser.py
+index d423f46..359552e 100755
+--- a/lib/python/Screens/PluginBrowser.py
++++ b/lib/python/Screens/PluginBrowser.py
+@@ -220,8 +220,8 @@ class PluginDownloadBrowser(Screen):
+                       self.remainingdata = ""
+               for x in lines:
+-                      plugin = x.split(" - ")
+-                      if len(plugin) >= 2:
++                      plugin = x.split(" - ", 2)
++                      if len(plugin) == 3:
+                               if self.run == 1 and self.type == self.DOWNLOAD:
+                                       if plugin[0] not in self.installedplugins:
+                                               self.installedplugins.append(plugin[0])
+@@ -239,13 +239,6 @@ class PluginDownloadBrowser(Screen):
+               
+               self.plugins = {}
+               for x in self.pluginlist:
+-                      if len(x) < 4:
+-                              split = x[0].split('-',3)
+-                              if not self.plugins.has_key(split[2]):
+-                                      self.plugins[split[2]] = []
+-                              self.plugins[split[2]].append((PluginDescriptor(name = x[2], description = " ", icon = verticallineIcon), split[3]))
+-                              continue
+-
+                       split = x[3].split('-', 1)
+                       if len(split) < 2:
+                               continue