projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
815a876
)
For bug #164363, shuffle the ip addresses returned from socket.getaddrinfo(). (trunk...
author
Zac Medico
<zmedico@gentoo.org>
Tue, 30 Jan 2007 23:40:14 +0000
(23:40 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Tue, 30 Jan 2007 23:40:14 +0000
(23:40 -0000)
svn path=/main/branches/2.1.2/; revision=5844
bin/emerge
patch
|
blob
|
history
diff --git
a/bin/emerge
b/bin/emerge
index a3561aee71de236160cf72fc6393b7fe1df551e7..620fda4340e7254e6b81aff8b2d57bd2306614e4 100755
(executable)
--- 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: