]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Fixed distcc get hosts (once again).
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 2 Mar 2009 21:38:32 +0000 (22:38 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 2 Mar 2009 21:38:32 +0000 (22:38 +0100)
tools/make-compilers

index 9a9f98f3ce78f90649d687be120aa0d4446e6182..8066a0e3eb00c167df50aedb7bfb25e9899e3e2d 100755 (executable)
@@ -100,10 +100,9 @@ distcc_get_hosts() {
        logger --distcc "[INFO] Getting hosts..."
        for i in $($BASEDIR/tools/buildspy uuid=$UUID action=get distcc=raw); do
                logger --distcc "[INFO]  Got host: $i"
-               echo "$i" >> $BASEDIR/distcc/hosts_new
+               echo "$i" | distcc_test_hosts >> $BASEDIR/distcc/hosts_new
        done
        if [ -s "$BASEDIR/distcc/hosts_new" ]; then
-               cat $BASEDIR/distcc/hosts_new | distcc_test_hosts > $BASEDIR/distcc/hosts_new
                mv $BASEDIR/distcc/hosts{_new,}
        fi
 }