summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-02-11 07:36:17 +0000
committerJeremy Katz <katzj@redhat.com>2003-02-11 07:36:17 +0000
commit16266325d54b320d6581717ec333237ce78ec5e3 (patch)
tree22e4860d9d413d25633546c7ad58ab396e1d17e3 /image.py
parentd21f6afb8915525deeeb0a062c480113ed9e959e (diff)
downloadanaconda-16266325d54b320d6581717ec333237ce78ec5e3.tar.gz
anaconda-16266325d54b320d6581717ec333237ce78ec5e3.tar.xz
anaconda-16266325d54b320d6581717ec333237ce78ec5e3.zip
check that files exist before we read header lists. this is getting
annoying :) (#84016)
Diffstat (limited to 'image.py')
-rw-r--r--image.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/image.py b/image.py
index 1dd862748..787ce9dc5 100644
--- a/image.py
+++ b/image.py
@@ -40,9 +40,13 @@ class ImageInstallMethod(InstallMethod):
return self.tree + "/RedHat/RPMS/" + h[1000000]
def readHeaders(self):
+ if not os.access(self.tree + "/RedHat/base/hdlist", os.R_OK):
+ raise FileCopyException
return HeaderListFromFile(self.tree + "/RedHat/base/hdlist")
def mergeFullHeaders(self, hdlist):
+ if not os.access(self.tree + "/RedHat/base/hdlist2", os.R_OK):
+ raise FileCopyException
hdlist.mergeFullHeaders(self.tree + "/RedHat/base/hdlist2")
def getSourcePath(self):