From 5789820ce7d3514b91199ac6219c78b54802a82e Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Fri, 12 Oct 2007 10:54:02 +0000 Subject: [PATCH] Solve bug where portage would not "see" my binhost because PORTAGE_BINHOST didn't end with a /. This is actually caused by urljoin not operating like os.path.join would do. svn path=/main/branches/prefix/; revision=8081 --- 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 91259c0a2..db8b192ae 100644 --- a/pym/portage/dbapi/bintree.py +++ b/pym/portage/dbapi/bintree.py @@ -560,6 +560,9 @@ class binarytree(object): not self._remotepkgs: base_url = self.settings["PORTAGE_BINHOST"] + # ensure the URL ends with a /, otherwise urljoin strips off + # the last directory, before it adds "Packages" + base_url = base_url.rstrip("/") + "/" from portage.const import CACHE_PATH from urlparse import urlparse urldata = urlparse(base_url) -- 2.26.2