re-add the IPKG plugin and rename the upgrade main function
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 19 Feb 2006 22:10:26 +0000 (22:10 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sun, 19 Feb 2006 22:10:26 +0000 (22:10 +0000)
lib/python/Plugins/update/plugin.py

index 070c199..e472a38 100644 (file)
@@ -162,8 +162,12 @@ class Ipkg(Screen):
                else:
                        self.close()
 
-def main(session):
+def UpgradeMain(session):
        session.open(Upgrade)
 
+def IpkgMain(session):
+       session.open(Ipkg)
+
 def Plugins():
-       return PluginDescriptor(name="Softwareupdate", description="Updates your receiver's software", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main)
+       return [PluginDescriptor(name="Softwareupdate", description="Updates your receiver's software", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=UpgradeMain),
+                       PluginDescriptor(name="IPKG", description="(Beta-)Frontend for the packet management", where = PluginDescriptor.WHERE_PLUGINMENU, fnc=IpkgMain)]