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 /image.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 'image.py')
-rw-r--r-- | image.py | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -141,6 +141,14 @@ class CdromInstallMethod(ImageInstallMethod): def ejectCD(self): isys.ejectCdrom(self.device, makeDevice=1) + 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 " + "installation images and that you have all the required " + "media.\n\n" + "If you reboot, your system will be left in an inconsistent " + "state that will likely require reinstallation.\n\n") % pkgname + def systemUnmounted(self): if self.loopbackFile: isys.makeDevInode("loop0", "/tmp/loop") @@ -346,6 +354,13 @@ class CdromInstallMethod(ImageInstallMethod): class NfsInstallMethod(ImageInstallMethod): + 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 " + "installation tree contains all required packages.\n\n" + "If you reboot, your system will be left in an inconsistent " + "state that will likely require reinstallation.\n\n") % pkgname + def __init__(self, method, rootPath, intf): """@param method: nfs:/mnt/source""" tree = method[5:] @@ -451,6 +466,14 @@ class NfsIsoInstallMethod(NfsInstallMethod): self.umountImage() self.mountImage(mediano) + 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 " + "installation images and that you have all the required " + "media.\n\n" + "If you reboot, your system will be left in an inconsistent " + "state that will likely require reinstallation.\n\n") % pkgname + def umountImage(self): if self.currentMedia: isys.umount(self.mntPoint) |