diff options
author | Brian C. Lane <bcl@redhat.com> | 2012-07-11 13:16:12 -0700 |
---|---|---|
committer | Brian C. Lane <bcl@redhat.com> | 2012-07-11 13:16:12 -0700 |
commit | fed27f3b71fc22164e905f1b5b98a40e3cd38636 (patch) | |
tree | f66d3ce90a77e2a6e450f955fbfeb441fc7f20ef /pyanaconda | |
parent | 07220ab7f3031f5631ac4bf1d89b0c1b73cb25a3 (diff) | |
download | anaconda-fed27f3b71fc22164e905f1b5b98a40e3cd38636.tar.gz anaconda-fed27f3b71fc22164e905f1b5b98a40e3cd38636.tar.xz anaconda-fed27f3b71fc22164e905f1b5b98a40e3cd38636.zip |
Show more info about source failure in the spoke
When package metadata fails to download suggest that the user check the
repo url and, if enabled, the proxy settings.
Diffstat (limited to 'pyanaconda')
-rw-r--r-- | pyanaconda/ui/gui/spokes/source.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py index 7752439aa..68020c88e 100644 --- a/pyanaconda/ui/gui/spokes/source.py +++ b/pyanaconda/ui/gui/spokes/source.py @@ -500,11 +500,17 @@ class SourceSpoke(NormalSpoke): try: self.payload.updateBaseRepo(self.storage, fallback=False) except PayloadError as e: + log.error("PayloadError: %s" % (e,)) self._error = True communication.send_message(self.__class__.__name__, _("Failed to set up install source")) + if not self.data.method.proxy: + self.window.set_info(Gtk.MessageType.WARNING, _("Failed to set up install source, check the repo url")) + else: + self.window.set_info(Gtk.MessageType.WARNING, _("Failed to set up install source, check the repo url and proxy settings")) else: self._error = False + self.window.clear_info() threadMgr.add(AnacondaThread(name="AnaPayloadMDThread", target=self.getRepoMetadata)) |