aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-02-23 02:21:03 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2006-02-23 02:21:03 +0000
commit10194a885f07b7d024aa806515a13588263d71e7 (patch)
tree8fbf9c0183355b4dfc41656eb6b73f615ab5a93e /lib/python
parent67cd4d5af656603770e61f8ce8dacf7422d246aa (diff)
downloadenigma2-10194a885f07b7d024aa806515a13588263d71e7.tar.gz
enigma2-10194a885f07b7d024aa806515a13588263d71e7.zip
some changes
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/PluginComponent.py4
-rw-r--r--lib/python/Screens/PluginBrowser.py3
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/python/Components/PluginComponent.py b/lib/python/Components/PluginComponent.py
index ae06d776..f3cd7e1e 100644
--- a/lib/python/Components/PluginComponent.py
+++ b/lib/python/Components/PluginComponent.py
@@ -59,6 +59,7 @@ class PluginComponent:
p.updateIcon(path)
self.addPlugin(p);
else:
+ open(path + "__init__.py", "w").close()
self.readPluginList(path, modules + [x], depth - 1)
def getPlugins(self, where):
@@ -71,6 +72,9 @@ class PluginComponent:
for p in self.plugins.get(x, [ ]):
res.append(p)
return res
+
+ def clearPluginList(self):
+ self.pluginList = []
def shutdown(self):
for p in self.pluginList[:]:
diff --git a/lib/python/Screens/PluginBrowser.py b/lib/python/Screens/PluginBrowser.py
index e40dc8a6..75599c2b 100644
--- a/lib/python/Screens/PluginBrowser.py
+++ b/lib/python/Screens/PluginBrowser.py
@@ -112,7 +112,9 @@ class PluginDownloadBrowser(Screen):
self.container.execute("ipkg update")
def installFinished(self):
+ plugins.clearPluginList()
plugins.readPluginList(resolveFilename(SCOPE_PLUGINS))
+ self.close()
def runFinished(self, retval):
if self.run == 0:
@@ -137,6 +139,7 @@ class PluginDownloadBrowser(Screen):
self.pluginlist.append(plugin)
def updateList(self):
+ self.list = []
for x in self.pluginlist:
plugin = PluginDescriptor(name = x[3], description = x[2])
self.list.append(PluginEntryComponent(plugin))