diff options
author | Mike Fulbright <msf@redhat.com> | 2003-05-05 21:34:01 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2003-05-05 21:34:01 +0000 |
commit | 3660161e0b945aa22745bdff7fa7da4b07c84c89 (patch) | |
tree | 0204533d793e648bf007259f3aec39e2b2132be3 /image.py | |
parent | bae30e78d558479a1b3dfca23c2020abcfcd3bc2 (diff) | |
download | anaconda-3660161e0b945aa22745bdff7fa7da4b07c84c89.tar.gz anaconda-3660161e0b945aa22745bdff7fa7da4b07c84c89.tar.xz anaconda-3660161e0b945aa22745bdff7fa7da4b07c84c89.zip |
did not read how these classes interacted well enough the first time. I've test this fix with NFS tree-based and NFS ISO.
Diffstat (limited to 'image.py')
-rw-r--r-- | image.py | 40 |
1 files changed, 23 insertions, 17 deletions
@@ -45,23 +45,6 @@ class ImageInstallMethod(InstallMethod): raise FileCopyException hl = HeaderListFromFile(self.tree + "/RedHat/base/hdlist") - # Make sure all of the correct CD images are available - missing_images = [] - for h in hl.values(): - if not self.discImages.has_key(h[1000002]): - if h[1000002] not in missing_images: - missing_images.append(h[1000002]) - - if len(missing_images) > 0: - missing_images.sort() - missing_string = "" - for missing in missing_images: - missing_string += "\t\t\tCD #%d\n" % (missing,) - - self.messageWindow(_("Error"), - _("The following ISO images are missing which are required for the install:\n\n%s\nThe system will now reboot.") % missing_string) - sys.exit(0) - return hl def mergeFullHeaders(self, hdlist): @@ -432,6 +415,29 @@ class NfsIsoInstallMethod(NfsInstallMethod): return self.mntPoint + "/RedHat/RPMS/" + h[1000000] + def readHeaders(self): + hl = NfsInstallMethod.readHeaders(self) + + # Make sure all of the correct CD images are available + missing_images = [] + for h in hl.values(): + if not self.discImages.has_key(h[1000002]): + if h[1000002] not in missing_images: + missing_images.append(h[1000002]) + + if len(missing_images) > 0: + missing_images.sort() + missing_string = "" + for missing in missing_images: + missing_string += "\t\t\tCD #%d\n" % (missing,) + + self.messageWindow(_("Error"), + _("The following ISO images are missing which are required for the install:\n\n%s\nThe system will now reboot.") % missing_string) + sys.exit(0) + + return hl + + def umountImage(self): if self.imageMounted: isys.umount(self.mntPoint) |