[rhel7-branch 23/29] Clear errors when downloading new MD in text
bcl
installerbot-noreply at redhat.com
Tue Jun 2 00:31:24 UTC 2015
From: "Brian C. Lane" <bcl at redhat.com>
The change to add payloadMgr didn't add a listener on metadata download
so the errors were never being reset.
Related: rhbz#1125927
(cherry picked from commit 35708aab1a0e106ae7fcb7b8ae9ae1f29cbc649b)
Related: rhbz#1196721
---
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 ed54c83..dd95d72 100644
--- a/pyanaconda/ui/tui/spokes/source.py
+++ b/pyanaconda/ui/tui/spokes/source.py
@@ -71,6 +71,7 @@ def initialize(self):
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):
@@ -91,6 +92,10 @@ def _initialize(self):
self._ready = True
+ def _downloading_package_md(self):
+ # Reset the error state from previous payloads
+ self.errors = []
+
def _payload_error(self):
self._error = True
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/98ba7ed7fe44d921ddd9d2a215b38fb8f2b0025d
More information about the anaconda-patches
mailing list