From 82828ec32242cbb0b9f5f5d921e65e5c239ffe19 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 1 Jun 2007 22:08:30 +0000 Subject: [PATCH] If PORTAGE_BINHOST is defined then use it as a URI attribute in the Packages index header. svn path=/main/trunk/; revision=6723 --- pym/portage/dbapi/bintree.py | 3 +++ 1 file changed, 3 insertions(+) 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: -- 2.26.2