From 0fdba4be9c425220ba459ad421f03cce4ab7ae70 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Wed, 27 Jun 2018 14:33:36 +0300 Subject: [PATCH] buildtools/wafsamba: use top for waf 2.0 Signed-off-by: Alexander Bokovoy Reviewed-by: Andrew Bartlett --- buildtools/wafsamba/samba_dist.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildtools/wafsamba/samba_dist.py b/buildtools/wafsamba/samba_dist.py index 29c5fd14e6d..0568403aa44 100644 --- a/buildtools/wafsamba/samba_dist.py +++ b/buildtools/wafsamba/samba_dist.py @@ -169,7 +169,9 @@ def dist(appname='', version=''): if not version: version = Context.g_module.VERSION - srcdir = os.path.normpath(os.path.join(os.path.dirname(Context.g_module.root_path), Context.g_module.srcdir)) + srcdir = os.path.normpath( + os.path.join(os.path.dirname(Context.g_module.root_path), + Context.g_module.top)) if not dist_dirs: Logs.error('You must use samba_dist.DIST_DIRS() to set which directories to package')