proberly install multiple packages without a GSOD
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 7 Jun 2008 11:25:34 +0000 (11:25 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 7 Jun 2008 11:25:34 +0000 (11:25 +0000)
lib/python/Components/DreamInfoHandler.py

index 6cd9670..833fea4 100644 (file)
@@ -208,7 +208,7 @@ class DreamInfoHandler:
                attributes = self.installingAttributes
                #print "attributes:", attributes
                
-               if self.currentAttributeIndex >= len(self.attributeNames): # end of package reached
+               if self.currentAttributeIndex >= len(self.attributeNames) - 1: # 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"
@@ -217,6 +217,7 @@ class DreamInfoHandler:
                        else:
                                print "increment meta index to install next package"
                                self.currentlyInstallingMetaIndex += 1
+                               self.currentAttributeIndex = 0
                                self.installPackage(self.installIndexes[self.currentlyInstallingMetaIndex])
                
                self.setStatus(self.STATUS_WORKING)