summaryrefslogtreecommitdiffstats
path: root/urlinstall.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-07-24 02:54:35 +0000
committerJeremy Katz <katzj@redhat.com>2003-07-24 02:54:35 +0000
commit2e687c5bbc0c07bda97c215be5dbc01c382d705f (patch)
tree8b908102eb958b770e82a4b2115ec517fe73a0ca /urlinstall.py
parent172ed6ee26c3936251b92c3897ccef1f4e3cac00 (diff)
downloadanaconda-2e687c5bbc0c07bda97c215be5dbc01c382d705f.tar.gz
anaconda-2e687c5bbc0c07bda97c215be5dbc01c382d705f.tar.xz
anaconda-2e687c5bbc0c07bda97c215be5dbc01c382d705f.zip
getFilename ended up going for disc1/disc2/RedHat/RPMS/n-v-r.a.rpm instead
of disc2/RedHat/RPMS/n-v-r.a.rpm (#100403)
Diffstat (limited to 'urlinstall.py')
-rw-r--r--urlinstall.py19
1 files changed, 10 insertions, 9 deletions
diff --git a/urlinstall.py b/urlinstall.py
index 1c7767787..87754f1e0 100644
--- a/urlinstall.py
+++ b/urlinstall.py
@@ -92,14 +92,20 @@ class UrlInstallMethod(InstallMethod):
log("Comps not in update dirs, using %s",fname)
return groupSetFromCompsFile(fname, hdlist)
- def getFilename(self, filename, callback=None, destdir=None, retry=1):
+ def getFilename(self, filename, callback=None, destdir=None, retry=1,
+ disc = 1):
if destdir is None:
tmppath = self.getTempPath()
else:
tmppath = destdir
+
+ if self.multiDiscs:
+ base = "%s/disc%d" %(self.pkgUrl, disc)
+ else:
+ base = self.pkgUrl
- fullPath = self.baseUrl + "/" + filename
+ fullPath = base + "/" + filename
file = tmppath + "/" + os.path.basename(fullPath)
@@ -127,14 +133,9 @@ class UrlInstallMethod(InstallMethod):
def getRPMFilename(self, h, timer, callback=None):
- if self.multiDiscs:
- base = "disc%d" % (h[DISCNUM],)
- else:
- base = ""
-
- fullPath = base + "/RedHat/RPMS/" + h[FILENAME]
+ fullPath = "/RedHat/RPMS/" + h[FILENAME]
- return self.getFilename(fullPath, callback=callback)
+ return self.getFilename(fullPath, callback=callback, disc = h[DISCNUM])
def copyFileToTemp(self, filename):
tmppath = self.getTempPath()