diff options
Diffstat (limited to 'pym/portage.py')
-rw-r--r-- | pym/portage.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py index 2a1c1c6ca..79bb3ca0b 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -6818,8 +6818,9 @@ class binarytree(object): os.makedirs(mydest, 0775) except (OSError, IOError): pass - from urlparse import urljoin, urlparse - url = urljoin(self.settings["PORTAGE_BINHOST"], tbz2name) + from urlparse import urlparse + # urljoin doesn't work correctly with unrecognized protocols like sftp + url = self.settings["PORTAGE_BINHOST"].rstrip("/") + "/" + tbz2name protocol = urlparse(url)[0] fcmd_prefix = "FETCHCOMMAND" if resume: |