]> git.ipfire.org Git - ipfire.org.git/commitdiff
Always check if the host is pingable before we send it to the childs.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 3 Oct 2008 12:42:52 +0000 (14:42 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 3 Oct 2008 12:42:52 +0000 (14:42 +0200)
build/builder.py

index cce07e50219255c2d5aed5769e57af0d67b69365..9a6d49df513c0a5efcdc5e5b48c18178462ff08f 100644 (file)
@@ -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(),)