From: Michael Tremer Date: Fri, 3 Oct 2008 12:42:52 +0000 (+0200) Subject: Always check if the host is pingable before we send it to the childs. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b27399ea6d2a3663bf4532f2a7ace617df74c14f;p=ipfire.org.git Always check if the host is pingable before we send it to the childs. --- diff --git a/build/builder.py b/build/builder.py index cce07e50..9a6d49df 100644 --- a/build/builder.py +++ b/build/builder.py @@ -155,7 +155,7 @@ class DistccConfig(DatabaseConfig): self.hostname = hostname def __str__(self): - if not self.hostname: + if not self.ping(): return "" return "%s:%s/4,lzo" % \ (socket.gethostbyname(self.hostname), self.get(),)