wafsamba: Call INSTALL_DIR in INSTALL_DIRS
authorAndreas Schneider <asn@samba.org>
Thu, 10 Aug 2017 09:40:06 +0000 (11:40 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 24 Aug 2017 03:39:26 +0000 (05:39 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12957

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/wafsamba.py

index b1e617916e009e5343f8ba2d9cbd3b16a531b669..57913af2bd72705e81fd7b68f10a8656758721f8 100644 (file)
@@ -904,12 +904,12 @@ def INSTALL_DIR(bld, path, chmod=0o755):
             os.chmod(path, chmod)
 Build.BuildContext.INSTALL_DIR = INSTALL_DIR
 
-def INSTALL_DIRS(bld, destdir, dirs):
+def INSTALL_DIRS(bld, destdir, dirs, chmod=0o755):
     '''install a set of directories'''
     destdir = bld.EXPAND_VARIABLES(destdir)
     dirs = bld.EXPAND_VARIABLES(dirs)
     for d in TO_LIST(dirs):
-        bld.install_dir(os.path.join(destdir, d))
+        INSTALL_DIR(bld, os.path.join(destdir, d), chmod)
 Build.BuildContext.INSTALL_DIRS = INSTALL_DIRS