summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-01-26 18:32:18 -0800
committerZac Medico <zmedico@gentoo.org>2011-01-26 18:32:18 -0800
commit92c25530595135e400d47128bc3b37e5e1806dc5 (patch)
treef469f9d6a658c725708df1c7cb3bdb3a6204bc9c
parent8c587a20613ff90ebc5ec2a00feaa32c46ff9228 (diff)
downloadportage-92c25530595135e400d47128bc3b37e5e1806dc5.tar.gz
portage-92c25530595135e400d47128bc3b37e5e1806dc5.tar.bz2
portage-92c25530595135e400d47128bc3b37e5e1806dc5.zip
binarytree: fix broken BASE_URI initialization
-rw-r--r--pym/portage/dbapi/bintree.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index cc6203a7d..5453622ee 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -861,9 +861,11 @@ class binarytree(object):
if pkgindex:
# Organize remote package list as a cpv -> metadata map.
remotepkgs = _pkgindex_cpv_map_latest_build(pkgindex)
+ remote_base_uri = pkgindex.header.get("URI", base_url)
+ for remote_metadata in remotepkgs.values():
+ remote_metadata["BASE_URI"] = remote_base_uri
self._remotepkgs.update(remotepkgs)
self._remote_has_index = True
- remote_base_uri = pkgindex.header.get("URI", base_url)
for cpv in remotepkgs:
self.dbapi.cpv_inject(cpv)
if True:
@@ -874,7 +876,6 @@ class binarytree(object):
remote_metadata = self._remotepkgs.get(cpv)
if remote_metadata is None:
continue
- remote_metadata["BASE_URI"] = remote_base_uri
# Use digests to compare identity.
identical = True
for hash_name in hash_names: