summaryrefslogtreecommitdiffstats
path: root/installmethod.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-11-08 11:43:11 -0500
committerChris Lumens <clumens@redhat.com>2007-11-20 11:08:37 -0500
commit5c23f951685353e18043412ece559623a87aec88 (patch)
tree300eaaa2c3f7b8ad7b4d8340718ec0f84736bf7f /installmethod.py
parentb73b025f769a23d0a5229274fd3b3a2995a7d67c (diff)
downloadanaconda-5c23f951685353e18043412ece559623a87aec88.tar.gz
anaconda-5c23f951685353e18043412ece559623a87aec88.tar.xz
anaconda-5c23f951685353e18043412ece559623a87aec88.zip
Remove unused functions from InstallMethods.
None of the following functions were even being called, so they can be removed easily: getFilename, copyFileToTemp, urlretrieve, systemUnmounted, getTempPath, and FileCopyException. Now only the hard parts are left.
Diffstat (limited to 'installmethod.py')
-rw-r--r--installmethod.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/installmethod.py b/installmethod.py
index 20e9af476..10dca2185 100644
--- a/installmethod.py
+++ b/installmethod.py
@@ -18,13 +18,6 @@ from constants import *
import logging
log = logging.getLogger("anaconda")
-## Raised by subclasses of InstallMethod when an error occurs copying a file.
-class FileCopyException(Exception):
- ## The constructor.
- # @param s An optional message to be added to the exception.
- def __init__(self, s = ""):
- self.args = s
-
## The base installation method class.
# This is an abstract class that defines the methods that make up an
# installation method. This class should not be used except as the superclass
@@ -41,37 +34,6 @@ class InstallMethod:
def protectedPartitions(self):
return []
- ## Return a directory that can be used for writing temporary data to.
- # @returns A valid temporary directory, or /tmp by default.
- 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:
- log.warning("Unable to find temp path, going to use ramfs path")
- return "/tmp/"
-
- return tmppath
-
- ## Fetch a file from the installation source.
- # @param filename The filename to fetch.
- # @param callback A function to be called when the file is fetched. This
- # function expects a message and size as parameters.
- # @param destdir The directory where the fetched file should be put.
- # @param retry How many times to attempt fetching the file.
- # @return The complete path to the fetched file on the local system.
- def getFilename(self, filename, callback=None, destdir=None, retry=1):
- pass
-
- ## Perform method-specific actions to unmount any installation media.
- def systemUnmounted(self):
- pass
-
## Perform method-specific actions to mount any installation media.
# @param fsset An instance of FileSystemSet.
# @param mntPoint The root of the filesystem to mount the media onto.