summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-06-01 22:08:30 +0000
committerZac Medico <zmedico@gentoo.org>2007-06-01 22:08:30 +0000
commit82828ec32242cbb0b9f5f5d921e65e5c239ffe19 (patch)
tree7f2ceb2090df8c96f14ea0cbfaf5c6925a517352
parent722a0dbce6d219ea7591f8c0758f5014dcec8232 (diff)
downloadportage-82828ec32242cbb0b9f5f5d921e65e5c239ffe19.tar.gz
portage-82828ec32242cbb0b9f5f5d921e65e5c239ffe19.tar.bz2
portage-82828ec32242cbb0b9f5f5d921e65e5c239ffe19.zip
If PORTAGE_BINHOST is defined then use it as a URI attribute in the Packages index header.
svn path=/main/trunk/; revision=6723
-rw-r--r--pym/portage/dbapi/bintree.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index 0df22a36c..89253a11f 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -739,6 +739,9 @@ class binarytree(object):
profile_path = profile_path.lstrip(profiles_base)
header["PROFILE"] = profile_path
header["VERSION"] = str(self._pkgindex_version)
+ binhost = self.settings.get("PORTAGE_BINHOST")
+ if binhost:
+ header["URI"] = binhost
for k in self._pkgindex_header_keys:
v = self.settings.get(k, None)
if v: