[master 3/5] Check repository URL before leaving Source Spoke

jkonecny12 installerbot-noreply at redhat.com
Tue Jul 14 09:02:44 UTC 2015


From: Jiri Konecny <jkonecny at redhat.com>

Iterate all repositories at on_back_clicked and check for url so user gets
warning about bad url before leaving the spoke.
And one small line wrap.
---
 pyanaconda/ui/gui/spokes/source.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index 479c41a..8817f18 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -623,7 +623,8 @@ def _grabObjects(self):
         # Call InputCheckHandler directly since this check operates on rows of a TreeModel
         # instead of GtkEntry inputs. Updating the check is handled by the signal handlers
         # connected to repoStore.
-        self._duplicateRepoCheck = InputCheckHandler.add_check(self, self._repoStore, self._checkDuplicateRepos)
+        self._duplicateRepoCheck = InputCheckHandler.add_check(self, self._repoStore,
+                                                                self._checkDuplicateRepos)
 
         # Create a dictionary for the checks on fields in individual repos
         # These checks will be added and removed as repos are added and removed from repoStore
@@ -1069,6 +1070,10 @@ def on_back_clicked(self, button):
         """If any input validation checks failed, keep the user on the screen.
            Otherwise, do the usual thing."""
 
+        # Check repositories on bad url
+        for repo in self._repoStore:
+            self._repoChecks[repo[REPO_OBJ].addon_repo_id].url_check.update_check_status()
+
         failed_check = next(self.failed_checks, None)
 
         # If the failed check is the duplicate repo check, focus the repo TreeView


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/635ade943a97f3aadc165a68fe53724d13fad15b


More information about the anaconda-patches mailing list