Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 91881 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]
Updated patch, gets -4/-6 from PORTAGE_RSYNC_*
portage.diff (text/plain), 1.09 KB, created by
Bernhard Schmidt
on 2006-07-16 04:31:09 UTC
(
hide
)
Description:
Updated patch, gets -4/-6 from PORTAGE_RSYNC_*
Filename:
MIME Type:
Creator:
Bernhard Schmidt
Created:
2006-07-16 04:31:09 UTC
Size:
1.09 KB
patch
obsolete
>diff -ru portage-2.1.1_pre20060710/bin/emerge portage-2.1.1_pre20060710-ipv6/bin/emerge >--- portage-2.1.1_pre20060710/bin/emerge 2006-07-11 01:01:38.000000000 +0200 >+++ portage-2.1.1_pre20060710-ipv6/bin/emerge 2006-07-16 13:25:40.000000000 +0200 >@@ -2657,8 +2657,23 @@ > if ips: > del ips[0] > if ips==[]: >+ rsync_afi = socket.AF_UNSPEC >+ for opt in ("-4", "--ipv4"): >+ for section in (rsync_opts, settings["PORTAGE_RSYNC_EXTRA_OPTS"]): >+ if opt in section: >+ rsync_afi = socket.AF_INET >+ for opt in ("-6", "--ipv6"): >+ for section in (rsync_opts, settings["PORTAGE_RSYNC_EXTRA_OPTS"]): >+ if opt in section: >+ rsync_afi = socket.AF_INET6 >+ > 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 enclosed in square 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