If PORTAGE_BINHOST is defined then use it as a URI attribute in the Packages index...
authorZac Medico <zmedico@gentoo.org>
Fri, 1 Jun 2007 22:08:30 +0000 (22:08 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 1 Jun 2007 22:08:30 +0000 (22:08 -0000)
svn path=/main/trunk/; revision=6723

pym/portage/dbapi/bintree.py

index 0df22a36c5fecb562f0f58272488af6f14685c74..89253a11f4e67f26522c85601be94955cd6add97 100644 (file)
@@ -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: