Browse Source

fix failure during redownload attempt

David Rose 16 years ago
parent
commit
eb5acbd9b4
1 changed files with 4 additions and 1 deletions
  1. 4 1
      direct/src/p3d/PackageInfo.py

+ 4 - 1
direct/src/p3d/PackageInfo.py

@@ -509,7 +509,7 @@ class PackageInfo:
             # Try again.
             # Try again.
             if not self.downloadDescFile(http):
             if not self.downloadDescFile(http):
                 return False
                 return False
-            assert self.installPlans
+
             token = self.__followInstallPlans()
             token = self.__followInstallPlans()
 
 
         if token == self.stepFailed:
         if token == self.stepFailed:
@@ -523,6 +523,9 @@ class PackageInfo:
         """ Performs all of the steps in self.installPlans.  Returns
         """ Performs all of the steps in self.installPlans.  Returns
         one of stepComplete, stepFailed, or restartDownload. """
         one of stepComplete, stepFailed, or restartDownload. """
 
 
+        if not self.installPlans:
+            self.__buildInstallPlans()
+
         installPlans = self.installPlans
         installPlans = self.installPlans
         self.installPlans = None
         self.installPlans = None
         for plan in installPlans:
         for plan in installPlans: