From 858fdcfcadb417361ac5381914529a4f97356547 Mon Sep 17 00:00:00 2001 From: Mike Fulbright Date: Fri, 20 Sep 2002 21:04:17 +0000 Subject: documentation addition to clarify self.baseUrl --- urlinstall.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'urlinstall.py') diff --git a/urlinstall.py b/urlinstall.py index f64d8cd28..15829204b 100644 --- a/urlinstall.py +++ b/urlinstall.py @@ -80,6 +80,7 @@ class UrlInstallMethod(InstallMethod): base = "%s/disc1" % (self.pkgUrl,) else: base = self.pkgUrl + fullPath = base + "/" + filename file = tmppath + "/" + os.path.basename(fullPath) @@ -102,6 +103,7 @@ class UrlInstallMethod(InstallMethod): def readHeaders(self): connected = 0 + while not connected: try: url = urllib.urlopen(self.baseUrl + "/RedHat/base/hdlist") @@ -151,6 +153,9 @@ class UrlInstallMethod(InstallMethod): rem = rem[:-1] self.baseUrl = self.baseUrl + rem + # self.baseUrl points at the path which contains the 'RedHat' + # directory with the hdlist. + if self.baseUrl[-6:] == "/disc1": self.multiDiscs = 1 self.pkgUrl = self.baseUrl[:-6] -- cgit