diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-08-08 11:01:22 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-08-08 11:01:22 +0000 |
commit | 2e5c28ed64b7e870bc2d0799efcf786e2577fdc3 (patch) | |
tree | 1b90d25a196a182b65d03b8e6590023427d7031a | |
parent | 536eead0b367f9365d1d1574aff3a37a56b96d47 (diff) | |
download | portage-2e5c28ed64b7e870bc2d0799efcf786e2577fdc3.tar.gz portage-2e5c28ed64b7e870bc2d0799efcf786e2577fdc3.tar.bz2 portage-2e5c28ed64b7e870bc2d0799efcf786e2577fdc3.zip |
Handle missing ipv6 support (branches/prefix r11347).
svn path=/main/trunk/; revision=11348
-rw-r--r-- | pym/_emerge/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 35ac098ab..cf1143b70 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -11114,7 +11114,7 @@ def action_sync(settings, trees, mtimedb, myopts, myaction): try: for addrinfo in socket.getaddrinfo( hostname, None, family, socket.SOCK_STREAM): - if addrinfo[0] == socket.AF_INET6: + if socket.has_ipv6 and addrinfo[0] == socket.AF_INET6: # IPv6 addresses need to be enclosed in square brackets ips.append("[%s]" % addrinfo[4][0]) else: |