From 8de216ed0cdf1ecae0c7fcf8665a535d2257dc00 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 8 Feb 2010 20:13:58 +0000 Subject: [PATCH] switch packages within one frame if possible --- direct/src/p3d/PackageInstaller.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/direct/src/p3d/PackageInstaller.py b/direct/src/p3d/PackageInstaller.py index fc112fb3ac..4a79f5571d 100644 --- a/direct/src/p3d/PackageInstaller.py +++ b/direct/src/p3d/PackageInstaller.py @@ -42,7 +42,9 @@ class PackageInstaller(DirectObject): class PendingPackage: """ This class describes a package added to the installer for download. """ - + + notify = directNotify.newCategory("PendingPackage") + def __init__(self, packageName, version, host): self.packageName = packageName self.version = version @@ -564,7 +566,8 @@ class PackageInstaller(DirectObject): # Successfully downloaded and installed. self.__donePackage(pp, True) - yield task.cont + # Continue the loop without yielding, so we pick up the + # next package within this same frame. def __donePackage(self, pp, success): """ Marks the indicated package as done, either successfully