From cdff2b767ec243bc4c29e4637fc20e7812621bb3 Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Sat, 21 Oct 2023 14:13:27 +1300 Subject: [PATCH] =?utf8?q?buildtools:=20Remove=20unused=20parameter=20?= =?utf8?q?=E2=80=98env=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This parameter goes unused, and nothing passes it in. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- buildtools/wafsamba/wafsamba.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 8c0aa23fe21..822e2e29ba2 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -1133,7 +1133,7 @@ def INSTALL_WILDCARD(bld, destdir, pattern, chmod=MODE_644, flat=False, python_fixup=python_fixup, base_name=trim_path) Build.BuildContext.INSTALL_WILDCARD = INSTALL_WILDCARD -def INSTALL_DIR(bld, path, chmod=0o755, env=None): +def INSTALL_DIR(bld, path, chmod=0o755): """Install a directory if it doesn't exist, always set permissions.""" if not path: @@ -1154,12 +1154,12 @@ def INSTALL_DIR(bld, path, chmod=0o755, env=None): raise Errors.WafError("Cannot create the folder '%s' (error: %s)" % (path, e)) Build.BuildContext.INSTALL_DIR = INSTALL_DIR -def INSTALL_DIRS(bld, destdir, dirs, chmod=0o755, env=None): +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): - INSTALL_DIR(bld, os.path.join(destdir, d), chmod, env) + INSTALL_DIR(bld, os.path.join(destdir, d), chmod) Build.BuildContext.INSTALL_DIRS = INSTALL_DIRS -- 2.47.2