diff --git a/configure.py b/configure.py index e136d19c81b3d1..9317bb5b725807 100755 --- a/configure.py +++ b/configure.py @@ -617,6 +617,10 @@ def warn(msg): # track if warnings occurred warn.warned = False +def info(msg): + prefix = '\033[1m\033[32mINFO\033[0m' if os.isatty(1) else 'INFO' + print('%s: %s' % (prefix, msg)) + def print_verbose(x): if not options.verbose: return @@ -1288,7 +1292,7 @@ def glob_to_var(dir_base, dir_sub, patch_dir): patchfile = '%s/%s/%s' % (dir_base, patch_dir, file) if os.path.isfile(patchfile): srcfile = '%s/%s' % (patch_dir, file) - warn('Using floating patch "%s" from "%s"' % (patchfile, dir_base)) + info('Using floating patch "%s" from "%s"' % (patchfile, dir_base)) list.append(srcfile) break return list