PY3: relative import fixes
authorNoel Power <noel.power@suse.com>
Mon, 6 Aug 2018 14:02:18 +0000 (15:02 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 23 Oct 2018 03:50:26 +0000 (05:50 +0200)
buildtools/wafsamba/samba_abi.py
buildtools/wafsamba/samba_bundled.py

index b5c6da46b930c0619d22ee76b4855b5378b930b8..80db7f87be5dcecfda623fffa86d069328101132 100644 (file)
@@ -7,7 +7,7 @@ import fnmatch
 
 from waflib import Options, Utils, Logs, Task, Build, Errors
 from waflib.TaskGen import feature, before, after
-import samba_utils
+from wafsamba import samba_utils
 
 # these type maps cope with platform specific names for common types
 # please add new type mappings into the list below
index fea4cb2bc3c2ed6dd90ad27a5ee671cd1e16021f..60ce7da7232f9fab4288cb6c599c7785a2d608eb 100644 (file)
@@ -3,7 +3,7 @@
 import sys
 from waflib import Build, Options, Logs
 from waflib.Configure import conf
-from samba_utils import TO_LIST
+from wafsamba import samba_utils
 
 def PRIVATE_NAME(bld, name, private_extension, private_library):
     '''possibly rename a library to include a bundled extension'''
@@ -139,7 +139,7 @@ def CHECK_BUNDLED_SYSTEM(conf, libname, minversion='0.0.0',
     # We always do a logic validation of 'onlyif' first
     missing = []
     if onlyif:
-        for l in TO_LIST(onlyif):
+        for l in samba_utils.TO_LIST(onlyif):
             f = 'FOUND_SYSTEMLIB_%s' % l
             if not f in conf.env:
                 Logs.error('ERROR: CHECK_BUNDLED_SYSTEM(%s) - ' % (libname) +