From: Zac Medico Date: Tue, 30 Jan 2007 08:11:55 +0000 (-0000) Subject: For bug #164363, shuffle the ip addresses returned from socket.getaddrinfo(). X-Git-Tag: v2.2_pre1~1785 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=acacbc609521790684dd4f721048c1cbf6ca7651;p=portage.git For bug #164363, shuffle the ip addresses returned from socket.getaddrinfo(). svn path=/main/trunk/; revision=5833 --- diff --git a/bin/emerge b/bin/emerge index 8a76158af..dc25343d8 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3843,6 +3843,8 @@ def action_sync(settings, trees, mtimedb, myopts, myaction): ips.append("[%s]" % addrinfo[4][0]) else: ips.append(addrinfo[4][0]) + from random import shuffle + shuffle(ips) except SystemExit, e: raise # Needed else can't exit except Exception, e: