summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2008-04-23 14:22:41 -0400
committerJeremy Katz <katzj@redhat.com>2008-04-25 15:33:54 -0400
commitfe4c072ae1b6e17edd6bce06a631f011627bba31 (patch)
tree053864a91c8b33b6d5dd5aaecf7aa2607d88a1ef /image.py
parent2acead0cc66243f6dfb10e9ccf9476ca57f8819d (diff)
downloadanaconda-fe4c072ae1b6e17edd6bce06a631f011627bba31.tar.gz
anaconda-fe4c072ae1b6e17edd6bce06a631f011627bba31.tar.xz
anaconda-fe4c072ae1b6e17edd6bce06a631f011627bba31.zip
Handle the DVD having a disknumber of ALL. (443291)
Anyway, right now the .discinfo file that is on the DVD has "ALL" in it. This just comes from the normal tree. When anaconda is looking for info about the iso images or discs it gets it looks at the .discinfo file to see what number it is. We used to munge the DVD and put in 1,2,3,4,etc.. for how many discs there are. This kind of sucks, 1) munging files blows. 2) requires you to know ahead of DVD creation time how many split isos it would equal. Pungi code got rearranged to where 2 isn't a trivial fix right now, and I realized that we could probably just fake anaconda into thinking that "ALL" == 1, as it's essentially the first of a single DVD sized iso set.
Diffstat (limited to 'image.py')
-rw-r--r--image.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/image.py b/image.py
index 021a0e6f2..5fece2314 100644
--- a/image.py
+++ b/image.py
@@ -111,6 +111,8 @@ def findIsoImages(path, messageWindow):
def getDiscNums(line):
# get the disc numbers for this disc
nums = line.split(",")
+ if nums == ['ALL']: # Treat "ALL" DVD as disc 1
+ return [1]
discNums = []
for num in nums:
discNums.append(int(num))