buildtools/wafsamba: only display 'ok' if the result is True
authorStefan Metzmacher <metze@samba.org>
Mon, 8 Oct 2012 09:18:03 +0000 (11:18 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 19 Oct 2012 10:14:57 +0000 (12:14 +0200)
Otherwise we print the raw value.

metze

Signed-off-by: Michael Adam <obnox@samba.org>
buildtools/wafsamba/samba_autoconf.py

index 5d3cc5a6882dd57202b9dc38b9a0f2709aebdf2e..76316d28e67f971e9ee428029cb51baf87613e8e 100644 (file)
@@ -62,8 +62,8 @@ def COMPOUND_END(conf, result):
     conf.check_message_1 = conf.saved_check_message_1
     conf.check_message_2 = conf.saved_check_message_2
     p = conf.check_message_2
-    if result:
-        p('ok ')
+    if result is True:
+        p('ok')
     elif not result:
         p('not found', 'YELLOW')
     else: