summaryrefslogtreecommitdiffstats
path: root/harddrive.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-07-24 05:34:53 +0000
committerJeremy Katz <katzj@redhat.com>2002-07-24 05:34:53 +0000
commitab6116821b6dc3b47471e830b4df87c23ca3a41a (patch)
treead7eb6068d5f8dbd0142a5de509b7feee2a7b4d6 /harddrive.py
parent63cfd194686954a38b6681f474aabf6111181efe (diff)
downloadanaconda-ab6116821b6dc3b47471e830b4df87c23ca3a41a.tar.gz
anaconda-ab6116821b6dc3b47471e830b4df87c23ca3a41a.tar.xz
anaconda-ab6116821b6dc3b47471e830b4df87c23ca3a41a.zip
fix cd installs (based on msf's comments). also, add stuff to copy RedHat/base/comps.rpm into /var/tmp before we start installing packages and actually install it after the install. there's got to be a better way, but this will at least work for this beta
Diffstat (limited to 'harddrive.py')
-rw-r--r--harddrive.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/harddrive.py b/harddrive.py
index 7e072c9ae..50d4cb408 100644
--- a/harddrive.py
+++ b/harddrive.py
@@ -26,6 +26,12 @@ FILENAME = 1000000
# Install from a set of files laid out on the hard drive like a CD
class OldHardDriveInstallMethod(InstallMethod):
+ def copyFileToTemp(self, filename):
+ tmppath = self.getTempPath()
+ path = tmppath + os.path.basename(filename)
+ shutil.copy(self.tree + "/" + filename, path)
+
+ return path
def mountMedia(self):
if (self.isMounted):
@@ -105,6 +111,12 @@ class OldHardDriveInstallMethod(InstallMethod):
# Install from one or more iso images
class HardDriveInstallMethod(InstallMethod):
+ def copyFileToTemp(self, filename):
+ tmppath = self.getTempPath()
+ path = tmppath + os.path.basename(tmppath)
+ shutil.copy(self.tree + "/" + filename, path)
+
+ return path
# mounts disc image cdNum under self.tree
def mountMedia(self, cdNum):