projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b522cc
)
For bug #164363, shuffle the ip addresses returned from socket.getaddrinfo().
author
Zac Medico
<zmedico@gentoo.org>
Tue, 30 Jan 2007 08:11:55 +0000
(08:11 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 30 Jan 2007 08:11:55 +0000
(08:11 -0000)
svn path=/main/trunk/; revision=5833
bin/emerge
patch
|
blob
|
history
diff --git
a/bin/emerge
b/bin/emerge
index 8a76158af88678f984f425649c64d8aed7ffbd2d..dc25343d8a372e430a38bc7339e052b7d80d255d 100755
(executable)
--- 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: