aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Extensions/IpkgInstaller/plugin.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-10-07 10:24:05 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-10-07 10:24:05 +0000
commitfdb15fdd11d88b73900badf092cf2db0e8d3aabf (patch)
treede15e3cad382c7e77575fbcb9c41e47689dba718 /lib/python/Plugins/Extensions/IpkgInstaller/plugin.py
parent22284d888f6eac661e4485ede53ca193f5ac248d (diff)
downloadenigma2-fdb15fdd11d88b73900badf092cf2db0e8d3aabf.tar.gz
enigma2-fdb15fdd11d88b73900badf092cf2db0e8d3aabf.zip
move media scanner components into core, patch by Moritz Venn (002_enigma2_move_mediascanner_components_into_core.patch)
Diffstat (limited to 'lib/python/Plugins/Extensions/IpkgInstaller/plugin.py')
-rw-r--r--lib/python/Plugins/Extensions/IpkgInstaller/plugin.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/python/Plugins/Extensions/IpkgInstaller/plugin.py b/lib/python/Plugins/Extensions/IpkgInstaller/plugin.py
index d9a3d490..4893dc47 100644
--- a/lib/python/Plugins/Extensions/IpkgInstaller/plugin.py
+++ b/lib/python/Plugins/Extensions/IpkgInstaller/plugin.py
@@ -20,7 +20,7 @@ class IpkgInstaller(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)):
@@ -47,14 +47,13 @@ class IpkgInstaller(Screen):
self.session.open(Ipkg, cmdList = cmdList)
def filescan_open(list, session, **kwargs):
- session.open(IpkgInstaller, list) # list
+ filelist = [x.path for x in list]
+ session.open(IpkgInstaller, filelist) # list
def filescan(**kwargs):
- # we expect not to be called if the MediaScanner plugin is not available,
- # thus we don't catch an ImportError exception here
- from Plugins.Extensions.MediaScanner.plugin import Scanner, ScanPath
+ from Components.Scanner import Scanner, ScanPath
return \
- Scanner(extensions = ["ipk"],
+ Scanner(mimetypes = ["application/x-debian-package"],
paths_to_scan =
[
ScanPath(path = "ipk", with_subdirs = True),