diff options
author | Chris Lumens <clumens@redhat.com> | 2012-03-02 14:42:20 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2012-03-06 13:05:01 -0500 |
commit | a7ef3b62d174e8b3e68d032bc088a73f6abaedc1 (patch) | |
tree | 9d3d2beb7809cc5426dafccded6d3d6e29bb8de2 /pyanaconda/packaging/__init__.py | |
parent | 109b8d079d15100479dba445efefa83a8ac5c2c9 (diff) | |
download | anaconda-a7ef3b62d174e8b3e68d032bc088a73f6abaedc1.tar.gz anaconda-a7ef3b62d174e8b3e68d032bc088a73f6abaedc1.tar.xz anaconda-a7ef3b62d174e8b3e68d032bc088a73f6abaedc1.zip |
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.
Diffstat (limited to 'pyanaconda/packaging/__init__.py')
-rw-r--r-- | pyanaconda/packaging/__init__.py | 9 |
1 files changed, 9 insertions, 0 deletions
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) |