diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-02-11 07:36:17 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-02-11 07:36:17 +0000 |
commit | 16266325d54b320d6581717ec333237ce78ec5e3 (patch) | |
tree | 22e4860d9d413d25633546c7ad58ab396e1d17e3 /image.py | |
parent | d21f6afb8915525deeeb0a062c480113ed9e959e (diff) | |
download | anaconda-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.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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): |