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 /urlinstall.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 'urlinstall.py')
-rw-r--r-- | urlinstall.py | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/urlinstall.py b/urlinstall.py index 5851e5014..2957bbe5a 100644 --- a/urlinstall.py +++ b/urlinstall.py @@ -68,6 +68,30 @@ class UrlInstallMethod(InstallMethod): return file + def copyFileToTemp(self, filename): + tmppath = self.getTempPath() + + if self.multiDics: + base = "%s/disc1" % (self.pkgUrl,) + else: + base = self.pkgUrl + fullPath = base + filename + + file = tmppath + os.path.basename(fullPath) + + connected = 0 + while not connected: + try: + urllib.urlretrieve(fullPath, file) + except IOError, (errnum, msg): + log("IOError %s occurred getting %s: %s", + errnum, fullPath, str(msg)) + time.sleep(5) + else: + connected = 1 + + return file + def unlinkFilename(self, fullName): os.remove(fullName) |