summaryrefslogtreecommitdiffstats
path: root/urlinstall.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-07-31 00:42:45 +0000
committerMike Fulbright <msf@redhat.com>2002-07-31 00:42:45 +0000
commitdc33b950c545c30e7872dd58664f8088545cd44b (patch)
treeeb40ff3155caac122292066c5b7357c0982dd469 /urlinstall.py
parent6919ce27faac2e2f261a473e86739a4480e5bd5c (diff)
downloadanaconda-dc33b950c545c30e7872dd58664f8088545cd44b.tar.gz
anaconda-dc33b950c545c30e7872dd58664f8088545cd44b.tar.xz
anaconda-dc33b950c545c30e7872dd58664f8088545cd44b.zip
get comps.xml from multiple sources
Diffstat (limited to 'urlinstall.py')
-rw-r--r--urlinstall.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/urlinstall.py b/urlinstall.py
index 2957bbe5a..509482b7f 100644
--- a/urlinstall.py
+++ b/urlinstall.py
@@ -37,7 +37,12 @@ DISCNUM = 1000002
class UrlInstallMethod(InstallMethod):
def readCompsViaMethod(self, hdlist):
- return ComponentSet(self.baseUrl + '/RedHat/base/comps.xml', hdlist)
+ fname = self.findBestFileMatch(None, 'comps.xml')
+ # if not local then assume its on host
+ if fname is None:
+ fname = self.baseUrl + '/RedHat/base/comps.xml'
+ log("Comps not in update dirs, using %s",fname)
+ return ComponentSet(fname, hdlist)
def getFilename(self, h, timer):
tmppath = self.getTempPath()