From 45d3ac05b3781a8c14e7f4426a515746e9a99172 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 9 Apr 2010 21:12:02 +1000 Subject: build: use Logs.error() and Logs.info() instead of print() this gives appropriate colors on output, and ensures it works with compiler output --- buildtools/wafsamba/samba_bundled.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'buildtools/wafsamba/samba_bundled.py') 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 -- cgit