diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-01-30 23:40:14 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-01-30 23:40:14 +0000 |
commit | 8966679d61510276dbd3399c10b2246cf00c615c (patch) | |
tree | e44aa2d654a450d55efb36165ee3105fbe537b77 /bin/emerge | |
parent | 815a8763316c10a23dd14e33803ccd323ba006cc (diff) | |
download | portage-8966679d61510276dbd3399c10b2246cf00c615c.tar.gz portage-8966679d61510276dbd3399c10b2246cf00c615c.tar.bz2 portage-8966679d61510276dbd3399c10b2246cf00c615c.zip |
For bug #164363, shuffle the ip addresses returned from socket.getaddrinfo(). (trunk r5832:5833)
svn path=/main/branches/2.1.2/; revision=5844
Diffstat (limited to 'bin/emerge')
-rwxr-xr-x | bin/emerge | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/emerge b/bin/emerge index a3561aee7..620fda434 100755 --- a/bin/emerge +++ b/bin/emerge @@ -3784,6 +3784,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: |