diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-01-26 18:32:18 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-02-02 15:11:31 -0800 |
commit | a4f473dd011dd9bba2fa0d69d6e7f9aa10edfffa (patch) | |
tree | f1ecdb7a0adb86574c5083d2349cd6d62d472856 /pym/portage | |
parent | 9cc738ec14cce8c5af5d95658125e31f1e2fa362 (diff) | |
download | portage-a4f473dd011dd9bba2fa0d69d6e7f9aa10edfffa.tar.gz portage-a4f473dd011dd9bba2fa0d69d6e7f9aa10edfffa.tar.bz2 portage-a4f473dd011dd9bba2fa0d69d6e7f9aa10edfffa.zip |
binarytree: fix broken BASE_URI initialization
Diffstat (limited to 'pym/portage')
-rw-r--r-- | pym/portage/dbapi/bintree.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py index d1d839985..accb8e7dc 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: |