On Wed, 2014-10-01 at 15:40 -0700, Brian C. Lane wrote:
The change to add payloadMgr didn't add a listener on metadata
download
so the errors were never being reset.
Related: rhbz#1125927
---
pyanaconda/ui/tui/spokes/source.py | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/pyanaconda/ui/tui/spokes/source.py b/pyanaconda/ui/tui/spokes/source.py
index b7940b6..d35e617 100644
--- a/pyanaconda/ui/tui/spokes/source.py
+++ b/pyanaconda/ui/tui/spokes/source.py
@@ -165,6 +165,7 @@ class SourceSpoke(SourceSwitchHandler, EditTUISpoke):
threadMgr.add(AnacondaThread(name=THREAD_SOURCE_WATCHER,
target=self._initialize))
+ payloadMgr.addListener(payloadMgr.STATE_GROUP_MD, self._downloading_package_md)
payloadMgr.addListener(payloadMgr.STATE_ERROR, self._payload_error)
def _initialize(self):
@@ -185,6 +186,10 @@ class SourceSpoke(SourceSwitchHandler, EditTUISpoke):
self._ready = True
+ def _downloading_package_md(self):
+ # Reset the error state from previous payloads
+ self.errors = []
+
def _payload_error(self):
self.errors.append(payloadMgr.error)
ACK.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic