From: Zac Medico Date: Fri, 1 Jun 2007 22:08:30 +0000 (-0000) Subject: If PORTAGE_BINHOST is defined then use it as a URI attribute in the Packages index... X-Git-Tag: v2.2_pre1~1305 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=82828ec32242cbb0b9f5f5d921e65e5c239ffe19;p=portage.git If PORTAGE_BINHOST is defined then use it as a URI attribute in the Packages index header. svn path=/main/trunk/; revision=6723 --- 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: