summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/BinpkgFetcher.py
diff options
context:
space:
mode:
authorDavid James <davidjames@google.com>2011-01-26 14:45:43 -0800
committerZac Medico <zmedico@gentoo.org>2011-01-26 17:01:31 -0800
commit7f84548b516d30de43118d58e6bc03c8739a0967 (patch)
treef4e1faf941c990032804fccbf438401fc019e843 /pym/_emerge/BinpkgFetcher.py
parentd055cc9b6e46f37193841ef89843493e0d61ee7b (diff)
downloadportage-7f84548b516d30de43118d58e6bc03c8739a0967.tar.gz
portage-7f84548b516d30de43118d58e6bc03c8739a0967.tar.bz2
portage-7f84548b516d30de43118d58e6bc03c8739a0967.zip
Update Portage to support multiple binhosts.
BUG=chromium-os:11295 TEST=Build x86-mario with multiple binhosts (board binhost, preflight binhost) and verify that binaries are picked up from both binhosts. Also verify that if one of the binhosts fails, the other binhost is used correctly. Review URL: http://codereview.chromium.org/6329022 Change-Id: I095f28c82e3effbc25105af6ac89e42c335e6381
Diffstat (limited to 'pym/_emerge/BinpkgFetcher.py')
-rw-r--r--pym/_emerge/BinpkgFetcher.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/_emerge/BinpkgFetcher.py b/pym/_emerge/BinpkgFetcher.py
index 942bcdf70..221d9a7ff 100644
--- a/pym/_emerge/BinpkgFetcher.py
+++ b/pym/_emerge/BinpkgFetcher.py
@@ -57,8 +57,8 @@ class BinpkgFetcher(SpawnProcess):
rel_uri = bintree._remotepkgs[pkg.cpv].get("PATH")
if not rel_uri:
rel_uri = pkg.cpv + ".tbz2"
- uri = bintree._remote_base_uri.rstrip("/") + \
- "/" + rel_uri.lstrip("/")
+ remote_base_uri = bintree._remotepkgs[pkg.cpv]["BASE_URI"]
+ uri = remote_base_uri.rstrip("/") + "/" + rel_uri.lstrip("/")
else:
uri = settings["PORTAGE_BINHOST"].rstrip("/") + \
"/" + pkg.pf + ".tbz2"