From 25b17210753117170ba1e40a3cbda0b97e208199 Mon Sep 17 00:00:00 2001 From: Uri Simchoni Date: Mon, 4 May 2015 09:12:45 +0300 Subject: [PATCH] waf: Fix parsing of cross-answers file in case answer includes a colon The answer provided in the cross-answers file may include a colon, as in: Checking uname version type: "#57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014" Signed-off-by: Uri Simchoni Reviewed-by: Andrew Bartlett Reviewed-by: Alexander Bokovoy --- buildtools/wafsamba/samba_cross.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildtools/wafsamba/samba_cross.py b/buildtools/wafsamba/samba_cross.py index 8911d4c8b0f..ed3af1e7db1 100644 --- a/buildtools/wafsamba/samba_cross.py +++ b/buildtools/wafsamba/samba_cross.py @@ -55,7 +55,7 @@ def cross_answer(ca_file, msg): if line == '' or line[0] == '#': continue if line.find(':') != -1: - a = line.split(':') + a = line.split(':', 1) thismsg = a[0].strip() if thismsg != msg: continue -- 2.11.4.GIT