diff options
author | Chris Lumens <clumens@redhat.com> | 2006-05-25 14:15:50 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-05-25 14:15:50 +0000 |
commit | 49a936cc890a75b73930c8ecc32323098305794b (patch) | |
tree | 117a83a89aa076735d60644bfcf20b6313e0ff33 /urlinstall.py | |
parent | cb1d032be5d2ab13a14add12a525b12cce36f50e (diff) | |
download | anaconda-49a936cc890a75b73930c8ecc32323098305794b.tar.gz anaconda-49a936cc890a75b73930c8ecc32323098305794b.tar.xz anaconda-49a936cc890a75b73930c8ecc32323098305794b.zip |
Consolidate file fetching error handling into one set of urlgrabber error
callbacks. Allow retrying when the error dialog is displayed (#183974).
Diffstat (limited to 'urlinstall.py')
-rw-r--r-- | urlinstall.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/urlinstall.py b/urlinstall.py index 528d6544d..a6be87a15 100644 --- a/urlinstall.py +++ b/urlinstall.py @@ -70,6 +70,14 @@ def urlretrieve(location, file, callback=None): class UrlInstallMethod(InstallMethod): + def badPackageError(self, pkgname): + return _("The file %s cannot be opened. This is due to a missing " + "file or perhaps a corrupt package. Please verify your " + "mirror contains all required packages, and try using a " + "different one.\n\n" + "If you reboot, your system will be left in an inconsistent " + "state that will likely require reinstallation.\n\n") % pkgname + def getFilename(self, filename, callback=None, destdir=None, retry=1, disc = 1): |