diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2008-06-02 11:54:14 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2008-06-02 11:54:14 +0000 |
| commit | e2cb873547511511067f8eca6cd6b2e99133464d (patch) | |
| tree | ecd398e5c5a41e1b8ff33c1523ee28e18355edbc /lib/python/Components/DreamInfoHandler.py | |
| parent | ad1e20175ad282a750315eb17861258668dfb2c9 (diff) | |
| download | enigma2-e2cb873547511511067f8eca6cd6b2e99133464d.tar.gz enigma2-e2cb873547511511067f8eca6cd6b2e99133464d.zip | |
properly handle tags combined with other prerequisites
Diffstat (limited to 'lib/python/Components/DreamInfoHandler.py')
| -rw-r--r-- | lib/python/Components/DreamInfoHandler.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/python/Components/DreamInfoHandler.py b/lib/python/Components/DreamInfoHandler.py index 8e9a8a27..9753e42b 100644 --- a/lib/python/Components/DreamInfoHandler.py +++ b/lib/python/Components/DreamInfoHandler.py @@ -149,9 +149,13 @@ class DreamInfoHandler: return False else: if prerequisites.has_key("tag"): - if self.neededTag in prerequisites["tag"]: - return True - return False + if not self.neededTag in prerequisites["tag"]: + return False + + if prerequisites.has_key("satellite"): + for sat in prerequisites["satellite"]: + if int(sat) not in nimmanager.getConfiguredSats(): + return False if prerequisites.has_key("bcastsystem"): for bcastsystem in prerequisites["bcastsystem"]: if nimmanager.hasNimType(bcastsystem): @@ -193,10 +197,13 @@ class DreamInfoHandler: #print "attributes:", attributes if self.currentAttributeIndex >= len(self.attributeNames): # end of package reached + print "end of package reached" if self.currentlyInstallingMetaIndex is None or self.currentlyInstallingMetaIndex >= len(self.installIndexes) - 1: + print "set status to DONE" self.setStatus(self.STATUS_DONE) return else: + print "increment meta index to install next package" self.currentlyInstallingMetaIndex += 1 self.installPackage(self.installIndexes[self.currentlyInstallingMetaIndex]) |
