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_dist.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'buildtools/wafsamba/samba_dist.py') diff --git a/buildtools/wafsamba/samba_dist.py b/buildtools/wafsamba/samba_dist.py index 0fa8dbee03..aea45c5770 100644 --- a/buildtools/wafsamba/samba_dist.py +++ b/buildtools/wafsamba/samba_dist.py @@ -33,7 +33,7 @@ def dist(appname='',version=''): srcdir = os.path.normpath(os.path.join(os.path.dirname(Utils.g_module.root_path), Utils.g_module.srcdir)) if not dist_dirs: - print('You must use samba_dist.DIST_DIRS() to set which directories to package') + Logs.error('You must use samba_dist.DIST_DIRS() to set which directories to package') sys.exit(1) dist_base = '%s-%s' % (appname, version) @@ -52,7 +52,7 @@ def dist(appname='',version=''): try: files = Utils.cmd_output(git_cmd).split() except: - print('git command failed: %s' % ' '.join(git_cmd)) + Logs.error('git command failed: %s' % ' '.join(git_cmd)) sys.exit(1) for f in files: abspath = os.path.join(srcdir, f) @@ -65,7 +65,7 @@ def dist(appname='',version=''): tar.close() - print('Created %s' % dist_name) + Logs.info('Created %s' % dist_name) return dist_name -- cgit