summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorPaul Nasrat <pnasrat@redhat.com>2005-11-15 02:16:10 +0000
committerPaul Nasrat <pnasrat@redhat.com>2005-11-15 02:16:10 +0000
commit7285804934940a5a53356be539c9c9db80eccba9 (patch)
tree12d405279a0088f31cbab2d2b1f0f684fc8d1e9d /image.py
parentde8d7567dc58490d8783d628ac0b0c4cc1c0be55 (diff)
downloadanaconda-7285804934940a5a53356be539c9c9db80eccba9.tar.gz
anaconda-7285804934940a5a53356be539c9c9db80eccba9.tar.xz
anaconda-7285804934940a5a53356be539c9c9db80eccba9.zip
getMethodUri applies to all image methods
Diffstat (limited to 'image.py')
-rw-r--r--image.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/image.py b/image.py
index 73af6b578..d7f550072 100644
--- a/image.py
+++ b/image.py
@@ -108,6 +108,9 @@ class ImageInstallMethod(InstallMethod):
def getSourcePath(self):
return self.tree
+ def getMethodUri(self):
+ return "file://%s" % (self.tree,)
+
def copyFileToTemp(self, filename):
tmppath = self.getTempPath()
path = tmppath + os.path.basename(filename)
@@ -398,8 +401,6 @@ class NfsInstallMethod(ImageInstallMethod):
tree = method[5:]
ImageInstallMethod.__init__(self, tree, rootPath, intf)
- def getMethodUri(self):
- return "file://%s" % (self.tree,)
def getDiscNums(line):
# get the disc numbers for this disc