diff options
author | Matt Wilson <msw@redhat.com> | 2000-05-22 20:38:39 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-05-22 20:38:39 +0000 |
commit | 1d38326b544fc7e46e599a9f91a9d35fb402896e (patch) | |
tree | f015599b3e9892916de2fb7433172a165969b5cf /image.py | |
parent | 789cf2add4f2fc8e45764826d9f8112f23e0f19d (diff) | |
download | anaconda-1d38326b544fc7e46e599a9f91a9d35fb402896e.tar.gz anaconda-1d38326b544fc7e46e599a9f91a9d35fb402896e.tar.xz anaconda-1d38326b544fc7e46e599a9f91a9d35fb402896e.zip |
don't die if we don't have the disc number tags
Diffstat (limited to 'image.py')
-rw-r--r-- | image.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -7,6 +7,7 @@ import os import isys import string from translate import _ +from log import log class ImageInstallMethod(InstallMethod): @@ -35,7 +36,10 @@ class CdromInstallMethod(ImageInstallMethod): isys.lochangefd("/tmp/loop", target) def getFilename(self, h): - if h[1000002] != self.currentDisc: + if h[1000002] == None: + log.log ("header for %s has no disc location tag, assuming it's" + "on the current CD", h[1000000]) + elif h[1000002] != self.currentDisc: self.currentDisc = h[1000002] isys.umount("/mnt/source") isys.ejectCdrom(self.device) |