For bug #172571, use socket.AF_INET as the default family for socket.getaddrinfo... v2.1.2.3
authorZac Medico <zmedico@gentoo.org>
Wed, 28 Mar 2007 22:40:41 +0000 (22:40 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 28 Mar 2007 22:40:41 +0000 (22:40 -0000)
svn path=/main/branches/2.1.2/; revision=6322

bin/emerge

index 10e52f801c2743d04816db551174b30cee210a80..4d17c44a44f6c6c4dc51efa3f6eb9313bf1f218e 100755 (executable)
@@ -3948,7 +3948,7 @@ def action_sync(settings, trees, mtimedb, myopts, myaction):
                all_rsync_opts = set(rsync_opts)
                all_rsync_opts.update(
                        settings.get("PORTAGE_RSYNC_EXTRA_OPTS","").split())
-               family = socket.AF_UNSPEC
+               family = socket.AF_INET
                if "-4" in all_rsync_opts or "--ipv4" in all_rsync_opts:
                        family = socket.AF_INET
                elif socket.has_ipv6 and \