From: Jiri Konecny jkonecny@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