From: Michael Tremer Date: Fri, 3 Oct 2008 12:47:38 +0000 (+0200) Subject: If the host is ourself, we don't return it. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=161111d2689dd18d41f5317dc337d310d2a6dd06;p=ipfire.org.git If the host is ourself, we don't return it. --- diff --git a/build/rpc.py b/build/rpc.py index 3a892340..51cf15f0 100644 --- a/build/rpc.py +++ b/build/rpc.py @@ -55,9 +55,9 @@ response = Response(config) data = cgi.FieldStorage() +uuid = data.getfirst("uuid") action = data.getvalue('action') if action == "set": - uuid = data.getfirst("uuid") if not uuid: response.set_code("406") response.set_mesg("UUID is not valid!") @@ -76,6 +76,7 @@ elif action == "get": if value == "raw": builders = [] for builder in getAllBuilders(): + if uuid == builder.uuid: continue builders.append("%s" % builder.distcc) string = "localhost/1" while True: