diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-07-24 05:34:53 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-07-24 05:34:53 +0000 |
commit | ab6116821b6dc3b47471e830b4df87c23ca3a41a (patch) | |
tree | ad7eb6068d5f8dbd0142a5de509b7feee2a7b4d6 /harddrive.py | |
parent | 63cfd194686954a38b6681f474aabf6111181efe (diff) | |
download | anaconda-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.py | 12 |
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): |