diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-06-25 19:27:03 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-06-25 19:27:03 +0000 |
commit | dc44a06b95c25dd3dad62ebb2aae0290f279fb46 (patch) | |
tree | abb6c9cb69b11488f8eec1c86ce8bebcbf9458b5 /urlinstall.py | |
parent | 631bacf0193b8a65eaec81043b1b03bfa329cc95 (diff) | |
download | anaconda-dc44a06b95c25dd3dad62ebb2aae0290f279fb46.tar.gz anaconda-dc44a06b95c25dd3dad62ebb2aae0290f279fb46.tar.xz anaconda-dc44a06b95c25dd3dad62ebb2aae0290f279fb46.zip |
get the root path into all of the install methods
Diffstat (limited to 'urlinstall.py')
-rw-r--r-- | urlinstall.py | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/urlinstall.py b/urlinstall.py index 3578d3b47..5558037da 100644 --- a/urlinstall.py +++ b/urlinstall.py @@ -40,14 +40,8 @@ class UrlInstallMethod(InstallMethod): return ComponentSet(self.baseUrl + '/RedHat/base/comps', hdlist) def getFilename(self, h, timer): - root = self.rootPath - pathlist = [ "/var/tmp", "/tmp", - "/." ] - for p in pathlist: - if (os.access(root + p, os.X_OK)): - tmppath = root + p + "/" - break - + tmppath = self.getTempPath() + # h doubles as a filename -- gross if type("/") == type(h): fullPath = self.baseUrl + "/" + h @@ -114,8 +108,7 @@ class UrlInstallMethod(InstallMethod): os.unlink(fn) def __init__(self, url, rootPath): - InstallMethod.__init__(self) - self.rootPath = rootPath + InstallMethod.__init__(self, rootPath) i = string.index(url, '://') + 2 self.baseUrl = url[0:i] |