[if19-patch/master] Add check for THREAD_PAYLOAD_MD to storage software test

Brian C. Lane bcl at redhat.com
Thu Jun 6 23:54:54 UTC 2013


From: "Brian C. Lane" <bcl at redhat.com>

In the storage spoke we poll the state of several threads and
payload.getRepo before enabling the software selection link. The call to
getRepo results in the spoke freezing until the yum_lock is available if
it is in the middle of a long running operation.
---
 pyanaconda/ui/gui/spokes/storage.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index af2a676..48edb6d 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -182,6 +182,7 @@ class InstallOptions1Dialog(GUIObject):
     def _software_is_ready(self):
         # FIXME:  Would be nicer to just ask the spoke if it's ready.
         return (not threadMgr.get(constants.THREAD_PAYLOAD) and
+                not threadMgr.get(constants.THREAD_PAYLOAD_MD) and
                 not threadMgr.get(constants.THREAD_SOFTWARE_WATCHER) and
                 not threadMgr.get(constants.THREAD_CHECK_SOFTWARE) and
                 self.payload.baseRepo is not None)
-- 
1.8.1.4



More information about the anaconda-patches mailing list