waf: add delimiter argument to TO_LIST.
authorGünther Deschner <gd@samba.org>
Sun, 26 Sep 2010 22:24:04 +0000 (00:24 +0200)
committerGünther Deschner <gd@samba.org>
Sun, 26 Sep 2010 22:39:38 +0000 (00:39 +0200)
Guenther

buildtools/wafsamba/samba_utils.py

index d858c5c9e5e2a61b0e16a0da86261265a1674d67..aa4fa20a43962806e1850b9dd732dc549cfc2995 100644 (file)
@@ -194,13 +194,13 @@ def unique_list(seq):
     return result
 
 
-def TO_LIST(str):
+def TO_LIST(str, delimiter=None):
     '''Split a list, preserving quoted strings and existing lists'''
     if str is None:
         return []
     if isinstance(str, list):
         return str
-    lst = str.split()
+    lst = str.split(delimiter)
     # the string may have had quotes in it, now we
     # check if we did have quotes, and use the slower shlex
     # if we need to