summaryrefslogtreecommitdiffstats
path: root/harddrive.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-05-05 19:12:37 +0000
committerMike Fulbright <msf@redhat.com>2003-05-05 19:12:37 +0000
commitbae30e78d558479a1b3dfca23c2020abcfcd3bc2 (patch)
tree75ba331f27bad9dc3cd68a8bc51ef2cfbdcdaf12 /harddrive.py
parent22b1edcb2e46cfcba62710791a8c59cf8b042479 (diff)
downloadanaconda-bae30e78d558479a1b3dfca23c2020abcfcd3bc2.tar.gz
anaconda-bae30e78d558479a1b3dfca23c2020abcfcd3bc2.tar.xz
anaconda-bae30e78d558479a1b3dfca23c2020abcfcd3bc2.zip
show ALL missing images, not just the first one.
Diffstat (limited to 'harddrive.py')
-rw-r--r--harddrive.py21
1 files changed, 15 insertions, 6 deletions
diff --git a/harddrive.py b/harddrive.py
index 0bb1d0b6b..615ebe705 100644
--- a/harddrive.py
+++ b/harddrive.py
@@ -17,6 +17,7 @@ from installmethod import InstallMethod, FileCopyException
from image import findIsoImages
import shutil
import os
+import sys
import isys
import iutil
import rpm
@@ -86,14 +87,22 @@ class HardDriveInstallMethod(InstallMethod):
self.umountMedia()
# Make sure all of the correct CD images are available
+ missing_images = []
for h in hl.values():
- import sys
if not self.discImages.has_key(h[1000002]):
- self.messageWindow(_("Error"),
- _("Missing ISO image for CD #%d, which is required for the "
- "install.\n\nThe system will now reboot.") % h[1000002])
- sys.exit(0)
-
+ 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):