summaryrefslogtreecommitdiffstats
path: root/installmethod.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-06-25 19:27:03 +0000
committerJeremy Katz <katzj@redhat.com>2002-06-25 19:27:03 +0000
commitdc44a06b95c25dd3dad62ebb2aae0290f279fb46 (patch)
treeabb6c9cb69b11488f8eec1c86ce8bebcbf9458b5 /installmethod.py
parent631bacf0193b8a65eaec81043b1b03bfa329cc95 (diff)
downloadanaconda-dc44a06b95c25dd3dad62ebb2aae0290f279fb46.tar.gz
anaconda-dc44a06b95c25dd3dad62ebb2aae0290f279fb46.tar.xz
anaconda-dc44a06b95c25dd3dad62ebb2aae0290f279fb46.zip
get the root path into all of the install methods
Diffstat (limited to 'installmethod.py')
-rw-r--r--installmethod.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/installmethod.py b/installmethod.py
index 1b49fbf2b..c1096c9d0 100644
--- a/installmethod.py
+++ b/installmethod.py
@@ -26,6 +26,21 @@ class InstallMethod:
return self.readCompsViaMethod(hdlist)
pass
+ def getTempPath(self):
+ root = self.rootPath
+ pathlist = [ "/var/tmp", "/tmp",
+ "/." ]
+ tmppath = None
+ for p in pathlist:
+ if (os.access(root + p, os.X_OK)):
+ tmppath = root + p + "/"
+ break
+
+ if tmppath is None:
+ raise RuntimeError, "Unable to find temp path"
+
+ return tmppath
+
def getFilename(self, h, timer):
pass
@@ -44,7 +59,8 @@ class InstallMethod:
def unlinkFilename(self, fullName):
pass
- def __init__(self):
+ def __init__(self, rootpath):
+ self.rootPath = rootpath
pass
def getSourcePath(self):