aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Extensions/IpkgInstaller
diff options
context:
space:
mode:
authoracid-burn <acidburn@opendreambox.org>2009-02-13 08:13:40 +0100
committeracid-burn <acidburn@opendreambox.org>2009-02-13 08:13:40 +0100
commit9015ce354743d7a3a73400c8b91cd85a6ceaeb96 (patch)
tree5036e309d2299238e345327ce7e5e752daae2909 /lib/python/Plugins/Extensions/IpkgInstaller
parent64281edbf808514b65c333f134f2f824a2dcae36 (diff)
downloadenigma2-9015ce354743d7a3a73400c8b91cd85a6ceaeb96.tar.gz
enigma2-9015ce354743d7a3a73400c8b91cd85a6ceaeb96.zip
remove IPKGInstaller and ConfigurationBackup
start working on Softwaremanager
Diffstat (limited to 'lib/python/Plugins/Extensions/IpkgInstaller')
-rw-r--r--lib/python/Plugins/Extensions/IpkgInstaller/.cvsignore4
-rw-r--r--lib/python/Plugins/Extensions/IpkgInstaller/Makefile.am5
-rw-r--r--lib/python/Plugins/Extensions/IpkgInstaller/__init__.py0
-rw-r--r--lib/python/Plugins/Extensions/IpkgInstaller/plugin.py67
4 files changed, 0 insertions, 76 deletions
diff --git a/lib/python/Plugins/Extensions/IpkgInstaller/.cvsignore b/lib/python/Plugins/Extensions/IpkgInstaller/.cvsignore
deleted file mode 100644
index 138b9cc2..00000000
--- a/lib/python/Plugins/Extensions/IpkgInstaller/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-*.pyc
-*.pyo
-Makefile
-Makefile.in
diff --git a/lib/python/Plugins/Extensions/IpkgInstaller/Makefile.am b/lib/python/Plugins/Extensions/IpkgInstaller/Makefile.am
deleted file mode 100644
index ece0698f..00000000
--- a/lib/python/Plugins/Extensions/IpkgInstaller/Makefile.am
+++ /dev/null
@@ -1,5 +0,0 @@
-installdir = $(LIBDIR)/enigma2/python/Plugins/Extensions/IpkgInstaller
-
-install_PYTHON = \
- __init__.py \
- plugin.py
diff --git a/lib/python/Plugins/Extensions/IpkgInstaller/__init__.py b/lib/python/Plugins/Extensions/IpkgInstaller/__init__.py
deleted file mode 100644
index e69de29b..00000000
--- a/lib/python/Plugins/Extensions/IpkgInstaller/__init__.py
+++ /dev/null
diff --git a/lib/python/Plugins/Extensions/IpkgInstaller/plugin.py b/lib/python/Plugins/Extensions/IpkgInstaller/plugin.py
deleted file mode 100644
index 4893dc47..00000000
--- a/lib/python/Plugins/Extensions/IpkgInstaller/plugin.py
+++ /dev/null
@@ -1,67 +0,0 @@
-from Components.ActionMap import ActionMap
-from Components.Ipkg import IpkgComponent
-from Components.Label import Label
-from Components.SelectionList import SelectionList
-from Plugins.Plugin import PluginDescriptor
-from Screens.Ipkg import Ipkg
-from Screens.Screen import Screen
-
-class IpkgInstaller(Screen):
- skin = """
- <screen position="100,100" size="550,400" title="..." >
- <widget name="red" halign="center" valign="center" position="0,0" size="140,60" backgroundColor="red" font="Regular;21" />
- <widget name="green" halign="center" valign="center" position="140,0" text="Install selected" size="140,60" backgroundColor="green" font="Regular;21" />
- <widget name="yellow" halign="center" valign="center" position="280,0" size="140,60" backgroundColor="yellow" font="Regular;21" />
- <widget name="blue" halign="center" valign="center" position="420,0" size="140,60" backgroundColor="blue" font="Regular;21" />
- <widget name="list" position="0,60" size="550,360" />
- </screen>
- """
-
- def __init__(self, session, list):
- self.skin = IpkgInstaller.skin
- Screen.__init__(self, session)
-
- self.list = SelectionList()
- self["list"] = self.list
- for listindex in range(len(list)):
- self.list.addSelection(list[listindex], list[listindex], listindex, True)
-
- self["red"] = Label()
- self["green"] = Label()
- self["yellow"] = Label()
- self["blue"] = Label()
-
- self["actions"] = ActionMap(["OkCancelActions", "ColorActions"],
- {
- "ok": self.list.toggleSelection,
- "cancel": self.close,
- "green": self.install
- }, -1)
-
- def install(self):
- list = self.list.getSelectionsList()
- cmdList = []
- for item in list:
- cmdList.append((IpkgComponent.CMD_INSTALL, { "package": item[1] }))
- print cmdList
- self.session.open(Ipkg, cmdList = cmdList)
-
-def filescan_open(list, session, **kwargs):
- filelist = [x.path for x in list]
- session.open(IpkgInstaller, filelist) # list
-
-def filescan(**kwargs):
- from Components.Scanner import Scanner, ScanPath
- return \
- Scanner(mimetypes = ["application/x-debian-package"],
- paths_to_scan =
- [
- ScanPath(path = "ipk", with_subdirs = True),
- ScanPath(path = "", with_subdirs = False),
- ],
- name = "Ipkg",
- description = "Install software updates...",
- openfnc = filescan_open, )
-
-def Plugins(**kwargs):
- return [ PluginDescriptor(name="Ipkg", where = PluginDescriptor.WHERE_FILESCAN, fnc = filescan) ]