summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2018-09-10 10:35:24 +1000
committerAlexander Bokovoy <ab@samba.org>2018-09-11 06:59:11 +0200
commit26ea0f58daace4adef7c5bb17f19476083bf3b7b (patch)
treeff37b8d9c9472faf9a392d0e9c73328aad381ff4 /buildtools
parenta122428a585281ebaf0135f11bd9377af9f6ab97 (diff)
downloadsamba-26ea0f58daace4adef7c5bb17f19476083bf3b7b.tar.gz
wafsamba: Make INSTALL_DIR() respect $DESTDIR
INSTALL_DIR() currently ignores $DESTDIR and just installs directories into the final destination. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'buildtools')
-rw-r--r--buildtools/wafsamba/wafsamba.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index d6754e9127c..93ca7ace43a 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -897,7 +897,8 @@ def INSTALL_DIR(bld, path, chmod=0o755, env=None):
if not path:
return []
- destpath = bld.EXPAND_VARIABLES(path)
+ destpath = os.path.join(Options.options.destdir,
+ bld.EXPAND_VARIABLES(path).lstrip(os.sep))
if bld.is_install > 0:
if not os.path.isdir(destpath):