From a6a7476d7d50f3dd63f7e59d6272f16b40af6f7c Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Wed, 1 Dec 2004 04:20:12 +0000 Subject: 2004-11-30 Jeremy Katz * image.py (findIsoImages): Skip ISOs which don't have a product/RPMS dir to avoid some of the confusion if users put the source ISOs in the same dir as the binary (#106017) --- image.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'image.py') diff --git a/image.py b/image.py index 740ca4307..7d9434d22 100644 --- a/image.py +++ b/image.py @@ -459,6 +459,13 @@ def findIsoImages(path, messageWindow): if (num == 1 and not os.access("/mnt/cdimage/%s/base/stage2.img" % (productPath,), os.R_OK)): + log("%s doesn't have a stage2.img, skipping" %(what,)) + continue + # we only install binary packages and they have to be + # in the product/RPMS/ dir. make sure it exists to + # avoid overwriting discs[2] with disc2 of the src.rpm set + if not os.path.isdir("/mnt/cdimage/%s/RPMS" %(productPath,)): + log("%s doesn't have binary RPMS, skipping" %(what,)) continue # warn user if images appears to be wrong size -- cgit