summaryrefslogtreecommitdiffstats
path: root/installmethod.py
diff options
context:
space:
mode:
authorPaul Nasrat <pnasrat@redhat.com>2005-08-19 17:01:34 +0000
committerPaul Nasrat <pnasrat@redhat.com>2005-08-19 17:01:34 +0000
commiteb7f46b2b0cf077ba7ebde56e41821a52c4c9429 (patch)
treec552d6dfc09867f270725f86ff997cff3fc1cd99 /installmethod.py
parentdaaa63b02ea41b42cf080d586b53f9f1718b36bb (diff)
downloadanaconda-eb7f46b2b0cf077ba7ebde56e41821a52c4c9429.tar.gz
anaconda-eb7f46b2b0cf077ba7ebde56e41821a52c4c9429.tar.xz
anaconda-eb7f46b2b0cf077ba7ebde56e41821a52c4c9429.zip
Simplify findBestFileMatch
Diffstat (limited to 'installmethod.py')
-rw-r--r--installmethod.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/installmethod.py b/installmethod.py
index 8efdc3b2c..405494f31 100644
--- a/installmethod.py
+++ b/installmethod.py
@@ -27,13 +27,13 @@ class FileCopyException(Exception):
class InstallMethod:
# find best match from several locations for a file
- def findBestFileMatch(self, treebase, file):
+ def findBestFileMatch(self, file):
# look in /tmp/updates first
rc = None
tryloc = ["/tmp/updates"]
- if treebase is not None:
- tryloc.append("%s/RHupdates" %(treebase,))
- tryloc.append("%s/%s/base" % (treebase, productPath))
+ if self.tree is not None:
+ tryloc.append("%s/RHupdates" %(self.tree,))
+ tryloc.append("%s/%s/base" % (self.tree, productPath))
for pre in tryloc:
tmpname = pre + "/" + file
@@ -90,6 +90,7 @@ class InstallMethod:
def __init__(self, method, rootpath, intf):
self.rootPath = rootpath
self.intf = intf
+ self.tree = None
def getSourcePath(self):
pass