summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_bundled.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-04-09 21:12:02 +1000
committerAndrew Tridgell <tridge@samba.org>2010-04-09 21:12:09 +1000
commit45d3ac05b3781a8c14e7f4426a515746e9a99172 (patch)
tree5dce7065b5b86fd9dcb6133bde9308358a78f151 /buildtools/wafsamba/samba_bundled.py
parentd661759780d70c771c3748095db5a5308451266d (diff)
downloadsamba-45d3ac05b3781a8c14e7f4426a515746e9a99172.tar.gz
samba-45d3ac05b3781a8c14e7f4426a515746e9a99172.tar.bz2
samba-45d3ac05b3781a8c14e7f4426a515746e9a99172.zip
build: use Logs.error() and Logs.info() instead of print()
this gives appropriate colors on output, and ensures it works with compiler output
Diffstat (limited to 'buildtools/wafsamba/samba_bundled.py')
-rw-r--r--buildtools/wafsamba/samba_bundled.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/buildtools/wafsamba/samba_bundled.py b/buildtools/wafsamba/samba_bundled.py
index e0a8e54eae..bab4143a9a 100644
--- a/buildtools/wafsamba/samba_bundled.py
+++ b/buildtools/wafsamba/samba_bundled.py
@@ -1,6 +1,7 @@
# functions to support bundled libraries
from Configure import conf
+import Logs
from samba_utils import *
def BUNDLED_NAME(bld, name, bundled_extension):
@@ -78,7 +79,7 @@ def CHECK_BUNDLED_SYSTEM(conf, libname, minversion='0.0.0',
f = 'FOUND_SYSTEM_%s' % syslib
if not f in conf.env:
if 'NONE' in conf.env.BUNDLED_LIBS or '!'+libname in conf.env.BUNDLED_LIBS:
- print('ERROR: Use of system library %s depends on missing system library %s' % (libname, syslib))
+ Logs.error('ERROR: Use of system library %s depends on missing system library %s' % (libname, syslib))
sys.exit(1)
conf.env[found] = False
return False
@@ -103,6 +104,6 @@ def CHECK_BUNDLED_SYSTEM(conf, libname, minversion='0.0.0',
return True
conf.env[found] = False
if 'NONE' in conf.env.BUNDLED_LIBS or '!'+libname in conf.env.BUNDLED_LIBS:
- print('ERROR: System library %s of version %s not found, and bundling disabled' % (libname, minversion))
+ Logs.error('ERROR: System library %s of version %s not found, and bundling disabled' % (libname, minversion))
sys.exit(1)
return False