build:wafsamba: Specify whether node objects or flat lists in ant_glob
authorThomas Nagy <tnagy@waf.io>
Thu, 19 Nov 2015 00:36:47 +0000 (01:36 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 24 Nov 2015 04:00:27 +0000 (05:00 +0100)
The changes enable the ant_glob declaration to be compatible with
more recent versions of Waf.

Signed-off-by: Thomas Nagy <tnagy@waf.io>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
buildtools/wafsamba/samba_abi.py
buildtools/wafsamba/wafsamba.py
docs-xml/wscript_build

index 82205945ce05d9098e3b480c9f0d12bc318dffb4..196b468f5b35f096f34dfa6e454f38e00a84ccbe 100644 (file)
@@ -225,7 +225,7 @@ def abi_build_vscript(task):
 def ABI_VSCRIPT(bld, libname, abi_directory, version, vscript, abi_match=None):
     '''generate a vscript file for our public libraries'''
     if abi_directory:
-        source = bld.path.ant_glob('%s/%s-[0-9]*.sigs' % (abi_directory, libname))
+        source = bld.path.ant_glob('%s/%s-[0-9]*.sigs' % (abi_directory, libname), flat=True)
         def abi_file_key(path):
             return version_key(path[:-len(".sigs")].rsplit("-")[-1])
         source = sorted(source.split(), key=abi_file_key)
index a17b609f8a08e90f556e1b280cb085b79d0739fb..8af8455d242dd4be8a9e8cbe9b5a020fac4c4bc6 100644 (file)
@@ -727,7 +727,7 @@ def SAMBA_SCRIPT(bld, name, pattern, installdir, installname=None):
     '''used to copy scripts from the source tree into the build directory
        for use by selftest'''
 
-    source = bld.path.ant_glob(pattern)
+    source = bld.path.ant_glob(pattern, flat=True)
 
     bld.SET_BUILD_GROUP('build_source')
     for s in TO_LIST(source):
@@ -856,7 +856,7 @@ Build.BuildContext.INSTALL_FILES = INSTALL_FILES
 def INSTALL_WILDCARD(bld, destdir, pattern, chmod=MODE_644, flat=False,
                      python_fixup=False, exclude=None, trim_path=None):
     '''install a set of files matching a wildcard pattern'''
-    files=TO_LIST(bld.path.ant_glob(pattern))
+    files=TO_LIST(bld.path.ant_glob(pattern, flat=True))
     if trim_path:
         files2 = []
         for f in files:
index d0e1051c550aca0730e3b53f27cddbc79eb12cc6..2cff3c1f4e93357b3abebf39daeb91565bf2378b 100644 (file)
@@ -116,7 +116,7 @@ def smbdotconf_generate_parameter_list(task):
     save_file(parameter_all, t , create_dir=True)
     return 0
 
-articles = bld.path.ant_glob("smbdotconf/**/*.xml")
+articles = bld.path.ant_glob("smbdotconf/**/*.xml", flat=True)
 parameter_all = 'smbdotconf/parameters.all.xml'
 bld.SAMBA_GENERATOR(parameter_all,
                     source=articles,