properly fix GSOD from last commit
[enigma2.git] / lib / python / Components / DreamInfoHandler.py
index 833fea4c9181b8cc2b7bc11d7e4c16f4477c08d4..f9bd479e68d20f8bb5ccd03d3f059db37afb29f8 100644 (file)
@@ -208,7 +208,7 @@ class DreamInfoHandler:
                attributes = self.installingAttributes
                #print "attributes:", attributes
                
-               if self.currentAttributeIndex >= len(self.attributeNames) - 1: # end of package reached
+               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"
@@ -219,9 +219,11 @@ class DreamInfoHandler:
                                self.currentlyInstallingMetaIndex += 1
                                self.currentAttributeIndex = 0
                                self.installPackage(self.installIndexes[self.currentlyInstallingMetaIndex])
+                               return
                
                self.setStatus(self.STATUS_WORKING)             
                
+               print "currentAttributeIndex:", self.currentAttributeIndex
                currentAttribute = self.attributeNames[self.currentAttributeIndex]
                
                print "installing", currentAttribute, "with index", self.currentIndex