Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 68172 Details for
Bug 37124
>portage-2.0.49-r15 does not sync to IPv6 hosts anymore
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Improved patch
emerge.diff (text/plain), 957 bytes, created by
Bernhard Schmidt
on 2005-09-11 05:44:43 UTC
(
hide
)
Description:
Improved patch
Filename:
MIME Type:
Creator:
Bernhard Schmidt
Created:
2005-09-11 05:44:43 UTC
Size:
957 bytes
patch
obsolete
>--- emerge.old 2005-09-11 12:17:39.180905106 +0000 >+++ emerge 2005-09-11 12:29:50.730905106 +0000 >@@ -2505,8 +2505,24 @@ > if ips: > del ips[0] > if ips==[]: >+ if portage.settings.has_key("RSYNC_IPV"): >+ if portage.settings["RSYNC_IPV"] == "4": >+ rsync_afi = socket.AF_INET >+ elif portage.settings["RSYNC_IPV"] == "6": >+ rsync_afi = socket.AF_INET6 >+ else: >+ print "!!! RSYNC_IPV specified, but it is not 4 or 6." >+ rsync_afi = socket.AF_UNSPEC >+ else: >+ rsync_afi = socket.AF_UNSPEC >+ > try: >- ips=socket.gethostbyname_ex(hostname)[2] >+ for addrinfo in socket.getaddrinfo(hostname, None, rsync_afi, socket.SOCK_STREAM): >+ if addrinfo[0] == 10: # IPv6 addresses need to be added with brackets >+ ips.append('[' + addrinfo[4][0] + ']') >+ else: >+ ips.append(addrinfo[4][0]) >+ > except SystemExit, e: > raise # Needed else can't exit > except Exception, e:
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 37124
:
41398
|
41401
|
65574
|
68172
|
91524
|
91544
|
91545
|
91881
|
94424