aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/PluginBrowser.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2007-01-12 21:23:20 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2007-01-12 21:23:20 +0000
commit6d33af577f3b7ff386fe08f6d7852c90b0911af3 (patch)
tree17f845a5f6ae4e4a2275ceca8f5352f19ff8d869 /lib/python/Screens/PluginBrowser.py
parentdf11dc7f75a44d4821de8e0518f907603178ed79 (diff)
downloadenigma2-6d33af577f3b7ff386fe08f6d7852c90b0911af3.tar.gz
enigma2-6d33af577f3b7ff386fe08f6d7852c90b0911af3.zip
don't offer to install already installed plugins in the plugin installer
Diffstat (limited to 'lib/python/Screens/PluginBrowser.py')
-rw-r--r--lib/python/Screens/PluginBrowser.py16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/python/Screens/PluginBrowser.py b/lib/python/Screens/PluginBrowser.py
index f5d0c8a1..fe81a33d 100644
--- a/lib/python/Screens/PluginBrowser.py
+++ b/lib/python/Screens/PluginBrowser.py
@@ -83,6 +83,7 @@ class PluginDownloadBrowser(Screen):
self["list"] = PluginList(self.list)
self.pluginlist = []
self.expanded = []
+ self.installedplugins = []
if self.type == self.DOWNLOAD:
self["text"] = Label(_("Downloading plugin information. Please wait..."))
@@ -139,21 +140,28 @@ class PluginDownloadBrowser(Screen):
if self.run == 0:
self.run = 1
if self.type == self.DOWNLOAD:
- self.container.execute("ipkg list enigma2-plugin-*")
+ self.container.execute("ipkg list_installed enigma2-plugin-*")
+ elif self.run == 1 and self.type == self.DOWNLOAD:
+ self.run = 2
+ self.container.execute("ipkg list enigma2-plugin-*")
else:
if len(self.pluginlist) > 0:
self.updateList()
self["list"].instance.show()
else:
- self["text"].setText("No plugins found")
+ self["text"].setText("No new plugins found")
def dataAvail(self, str):
for x in str.split('\n'):
plugin = x.split(" - ")
if len(plugin) == 3:
- plugin.append(plugin[0][15:])
+ if self.run == 1 and self.type == self.DOWNLOAD:
+ self.installedplugins.append(plugin[0])
+ else:
+ if plugin[0] not in self.installedplugins:
+ plugin.append(plugin[0][15:])
- self.pluginlist.append(plugin)
+ self.pluginlist.append(plugin)
def updateList(self):
self.list = []