summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-05-22 20:38:39 +0000
committerMatt Wilson <msw@redhat.com>2000-05-22 20:38:39 +0000
commit1d38326b544fc7e46e599a9f91a9d35fb402896e (patch)
treef015599b3e9892916de2fb7433172a165969b5cf /image.py
parent789cf2add4f2fc8e45764826d9f8112f23e0f19d (diff)
downloadanaconda-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.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/image.py b/image.py
index 915d117b5..95392e19c 100644
--- a/image.py
+++ b/image.py
@@ -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)