buildtools: Split git ls-files output on newline, not any whitespace
authorAndrew Bartlett <abartlet@samba.org>
Thu, 16 Aug 2018 21:39:46 +0000 (09:39 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 16 Aug 2018 21:42:19 +0000 (23:42 +0200)
This allows files to have a space in the filename within the Samba git tree.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Douglas Bagnall <douglas.bagnall@catalyst.net.nz>

buildtools/wafsamba/samba_dist.py

index 8d516320a251ddaf122c390f00c6f1abf59cecaa..5c931a9974d3d2c325e9332ab99e08b0d20b2252 100644 (file)
@@ -91,7 +91,7 @@ def vcs_dir_contents(path):
         repo = os.path.dirname(repo)
     if repo == "/":
         raise Exception("unsupported or no vcs for %s" % path)
-    return Utils.cmd_output(ls_files_cmd, cwd=cwd, env=env).split()
+    return Utils.cmd_output(ls_files_cmd, cwd=cwd, env=env).split('\n')
 
 
 def dist(appname='', version=''):