packaging(RHEL-CTDB): fix the build when ccache is not found.
authorMichael Adam <obnox@samba.org>
Mon, 1 Dec 2008 22:03:38 +0000 (23:03 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 1 Dec 2008 22:03:38 +0000 (23:03 +0100)
Michael

packaging/RHEL-CTDB/samba.spec.tmpl

index 9f177e2d5201dd2b0b4af8417972165af68ff5ba..4c82780e24985faf980385f26b8e7ef0229c16ef 100644 (file)
@@ -133,8 +133,7 @@ cd source
 # RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64"
 
 ## check for ccache
-ccache -h 2>&1 > /dev/null
-if [ $? -eq 0 ]; then
+if ccache -h 2>&1 > /dev/null ; then
        CC="ccache gcc"
 else
        CC="gcc"