waf: Fix parsing of cross-answers file in case answer includes a colon
authorUri Simchoni <urisimchoni@gmail.com>
Mon, 4 May 2015 06:12:45 +0000 (09:12 +0300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 20 May 2015 09:19:11 +0000 (11:19 +0200)
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 <urisimchoni@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
buildtools/wafsamba/samba_cross.py

index 8911d4c8b0f1434bdc8e5870e0e7fca7445e6d49..ed3af1e7db1d371b20a374ed0f6839f6c28c77ea 100644 (file)
@@ -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