From a7ef3b62d174e8b3e68d032bc088a73f6abaedc1 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Fri, 2 Mar 2012 14:42:20 -0500 Subject: Run payload setup in a separate thread. This way, we can be fetching repo metadata in the background while the user does other stuff. We still need to wait for storage probing to be done, in case we're doing a CD/DVD/HD install source. --- pyanaconda/packaging/__init__.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pyanaconda/packaging/__init__.py') diff --git a/pyanaconda/packaging/__init__.py b/pyanaconda/packaging/__init__.py index 2f7d59a15..4ebfc0f91 100644 --- a/pyanaconda/packaging/__init__.py +++ b/pyanaconda/packaging/__init__.py @@ -391,6 +391,15 @@ class PackagePayload(Payload): """ A PackagePayload installs a set of packages onto the target system. """ pass +def payloadInitialize(storage, payload): + from pyanaconda.threads import threadMgr + + storageThread = threadMgr.get("AnaStorageThread") + if storageThread: + storageThread.join() + + payload.setup(storage) + def show_groups(): ksdata = makeVersion() obj = YumPayload(ksdata) -- cgit