From: Michael Tremer Date: Sat, 4 Oct 2008 18:11:30 +0000 (+0200) Subject: Added randomize token for distcc. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d484bc202d2bd80d1e7d2c591c0ffe5894ae413;p=ipfire.org.git Added randomize token for distcc. --- diff --git a/build/rpc.py b/build/rpc.py index 51cf15f0..81058485 100644 --- a/build/rpc.py +++ b/build/rpc.py @@ -78,11 +78,12 @@ elif action == "get": for builder in getAllBuilders(): if uuid == builder.uuid: continue builders.append("%s" % builder.distcc) - string = "localhost/1" + string = "localhost/1\n--randomize\n" while True: if not builders: break rand = random.randint(0, len(builders)-1) - string = "%s %s" % (string, builders[rand],) + if builders[rand]: + string = "%s%s\n" % (string, builders[rand],) builders.pop(rand) response.set_mesg(string)