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

pym/emerge/__init__.py

index d41d9af0b81a3f9ef304b5f6994eeb0837814ef1..e872f54435d9bcbb8eb3d12d54ed87a81dd00c10 100644 (file)
@@ -4034,7 +4034,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 \