diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2008-06-03 00:42:00 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2008-06-03 00:42:00 +0000 |
| commit | 2c32c8ba80f56f7bc1b3561aea2dd25770c33fbd (patch) | |
| tree | b38d7c9530a40cfe94a34a0e7cee510b58bc3fff /lib/python/Components/DreamInfoHandler.py | |
| parent | e7e86ba59b42992701e6750e707192ab215f5017 (diff) | |
| download | enigma2-2c32c8ba80f56f7bc1b3561aea2dd25770c33fbd.tar.gz enigma2-2c32c8ba80f56f7bc1b3561aea2dd25770c33fbd.zip | |
allow installing from multiple directories
Diffstat (limited to 'lib/python/Components/DreamInfoHandler.py')
| -rw-r--r-- | lib/python/Components/DreamInfoHandler.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/python/Components/DreamInfoHandler.py b/lib/python/Components/DreamInfoHandler.py index 9753e42b..858b99a2 100644 --- a/lib/python/Components/DreamInfoHandler.py +++ b/lib/python/Components/DreamInfoHandler.py @@ -130,7 +130,13 @@ class DreamInfoHandler: # prerequisites = True: give only packages matching the prerequisites def fillPackagesList(self, prerequisites = True): self.packageslist = [] - packages = crawlDirectory(self.directory, ".*\.info$") + packages = [] + if not isinstance(self.directory, list): + self.directory = [self.directory] + + for directory in self.directory: + packages += crawlDirectory(directory, ".*\.info$") + for package in packages: self.readInfo(package[0] + "/", package[0] + "/" + package[1]) |
