requires the base url to have a trailing slash, so join PORTAGE_BINHOST
manually. Thanks to Lance Albertson <ramereth@g.o> for reporting. (trunk r12192)
svn path=/main/branches/2.1.6/; revision=12225
import urllib, urlparse
rmt_idx = self._new_pkgindex()
try:
- f = urllib.urlopen(urlparse.urljoin(base_url, "Packages"))
+ # urlparse.urljoin() only works correctly with recognized
+ # protocols and requires the base url to have a trailing
+ # slash, so join manually...
+ f = urllib.urlopen(base_url.rstrip("/") + "/Packages")
try:
rmt_idx.readHeader(f)
remote_timestamp = rmt_idx.header.get("TIMESTAMP", None)