buildtools/wafsamba: use top for waf 2.0
authorAlexander Bokovoy <ab@samba.org>
Wed, 27 Jun 2018 11:33:36 +0000 (14:33 +0300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 5 Sep 2018 04:37:26 +0000 (06:37 +0200)
Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
buildtools/wafsamba/samba_dist.py

index 29c5fd14e6d7207b808f1f382871caec61c774b3..0568403aa4411accaa4ab4651aac4e3fb89d4928 100644 (file)
@@ -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')