Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 43277 Details for
Bug 70028
[PATCH] PORTAGE_BINHOST with custom FTP-port doesn't work
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for getbinpkg.patch to support port in HTTP/HTTPS/FTP
getbinpkg.patch (text/plain), 917 bytes, created by
Patrik Kullman
on 2004-11-04 03:14:26 UTC
(
hide
)
Description:
Patch for getbinpkg.patch to support port in HTTP/HTTPS/FTP
Filename:
MIME Type:
Creator:
Patrik Kullman
Created:
2004-11-04 03:14:26 UTC
Size:
917 bytes
patch
obsolete
>--- 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:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 70028
: 43277