--- usr/lib/portage/pym/portage/getbinpkg.py 2009-04-24 22:35:15.000000000 +0400 +++ getbinpkg.py 2009-04-24 23:15:05.000000000 +0400 @@ -132,11 +132,23 @@ elif protocol == "http": conn = httplib.HTTPConnection(host) elif protocol == "ftp": + port_host = host.split(":",1) + if len(port_host) == 1: + port = None + else: + port = port_host[1] + host = port_host[0] + passive = 1 if(host[-1] == "*"): passive = 0 host = host[:-1] - conn = ftplib.FTP(host) + + conn = ftplib.FTP() + if port: + conn.connect(host, port) + else: + conn.connect(host) if password: conn.login(username,password) else: