mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
alt_host bug
This commit is contained in:
parent
712797797e
commit
6967dede19
@ -1750,6 +1750,7 @@ class Packager:
|
|||||||
return he
|
return he
|
||||||
|
|
||||||
def addAltHost(self, keyword, altHost, origHost = None,
|
def addAltHost(self, keyword, altHost, origHost = None,
|
||||||
|
downloadUrl = None,
|
||||||
descriptiveName = None, mirrors = None):
|
descriptiveName = None, mirrors = None):
|
||||||
""" Adds an alternate host to any already-known host. This
|
""" Adds an alternate host to any already-known host. This
|
||||||
defines an alternate server that may be contacted, if
|
defines an alternate server that may be contacted, if
|
||||||
@ -1761,7 +1762,8 @@ class Packager:
|
|||||||
if not origHost:
|
if not origHost:
|
||||||
origHost = self.host
|
origHost = self.host
|
||||||
|
|
||||||
self.addHost(altHost, descriptiveName, mirrors)
|
self.addHost(altHost, downloadUrl = downloadUrl,
|
||||||
|
descriptiveName = descriptiveName, mirrors = mirrors)
|
||||||
he = self.addHost(origHost)
|
he = self.addHost(origHost)
|
||||||
he.altHosts[keyword] = altHost
|
he.altHosts[keyword] = altHost
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user