From 8d484bc202d2bd80d1e7d2c591c0ffe5894ae413 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 4 Oct 2008 20:11:30 +0200 Subject: [PATCH] Added randomize token for distcc. --- build/rpc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- 2.47.3