summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-12-01 04:20:12 +0000
committerJeremy Katz <katzj@redhat.com>2004-12-01 04:20:12 +0000
commita6a7476d7d50f3dd63f7e59d6272f16b40af6f7c (patch)
treed71169e82b6dd0c97ac11f97a2695b7723e91d47 /image.py
parent8ba99971a9679d7ade18b3c87882f279706bbfd5 (diff)
downloadanaconda-a6a7476d7d50f3dd63f7e59d6272f16b40af6f7c.tar.gz
anaconda-a6a7476d7d50f3dd63f7e59d6272f16b40af6f7c.tar.xz
anaconda-a6a7476d7d50f3dd63f7e59d6272f16b40af6f7c.zip
2004-11-30 Jeremy Katz <katzj@redhat.com>
* 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)
Diffstat (limited to 'image.py')
-rw-r--r--image.py7
1 files changed, 7 insertions, 0 deletions
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