buildtools/wafsamba: Decode output of cmd_output (which is bytes)
authorNoel Power <noel.power@suse.com>
Mon, 10 Dec 2018 20:18:11 +0000 (20:18 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 13 Dec 2018 23:51:32 +0000 (00:51 +0100)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/samba_conftests.py

index d8f793638f5d56794460d45dd1b9ac1040970ea9..c0b9ae4929649692c9870edf28e8e0aa94fca113 100644 (file)
@@ -418,7 +418,7 @@ def CHECK_COMMAND(conf, cmd, msg=None, define=None, on_target=True, boolean=Fals
     if on_target:
         cmd.extend(conf.SAMBA_CROSS_ARGS(msg=msg))
     try:
-        ret = Utils.cmd_output(cmd)
+        ret = Utils.cmd_output(cmd).decode('utf8')
     except:
         conf.COMPOUND_END(False)
         return False