--- getbinpkg.py 2004-11-04 12:03:00.000000000 +0100 +++ /usr/lib/portage/pym/getbinpkg.py 2004-11-04 12:14:50.370373544 +0100 @@ -98,6 +98,14 @@ password = None del userpass + hostport = string.split(host, ":", 1) + if len(hostport) == 2: + host = hostport[0] + port = hostport[1] + else: + port = None + del hostport + http_headers = {} http_params = {} if username and password: @@ -112,15 +120,16 @@ if not conn: if protocol == "https": - conn = httplib.HTTPSConnection(host) + conn = httplib.HTTPSConnection(host, port) elif protocol == "http": - conn = httplib.HTTPConnection(host) + conn = httplib.HTTPConnection(host, port) elif protocol == "ftp": passive = 0 if(host[-1] == "*"): passive = 1 host = host[:-1] - conn = ftplib.FTP(host) + conn = ftplib.FTP() + conn.connect(host, port) if password: conn.login(username,password) else: