From: Aliaksei Karaliou Date: Thu, 27 Dec 2018 09:51:41 +0000 (-0500) Subject: build: Fixed usage of non-default path to WAFLOCK X-Git-Tag: ldb-1.6.1~189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b50f8390eba23b2ec310c495cf67a96b47ba9966;p=thirdparty%2Fsamba.git build: Fixed usage of non-default path to WAFLOCK If WAFLOCK environment variable is set, use it to override path to WAF lock file in Samba build scripts. Signed-off-by: Aliaksei Karaliou Reviewed-by: Alexander Bokovoy Reviewed-by: Garming Sam Reviewed-by: Andrew Bartlett --- diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py index bc36d1f194d..93ce317f114 100644 --- a/buildtools/wafsamba/samba_utils.py +++ b/buildtools/wafsamba/samba_utils.py @@ -590,7 +590,7 @@ def load_file(filename): def reconfigure(ctx): '''rerun configure if necessary''' - if not os.path.exists(".lock-wscript"): + if not os.path.exists(os.environ.get('WAFLOCK', '.lock-wscript')): raise Errors.WafError('configure has not been run') import samba_wildcard bld = samba_wildcard.fake_build_environment()