aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/yelphelper.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-11-08 15:53:47 +0530
committerJussi Pakkanen <jpakkane@gmail.com>2016-11-08 17:43:24 -0500
commita2262103fb749b570c4096b43ee107ad7143c04e (patch)
tree0f92a5ddca431d391d8918c9d84ec23c32d99389 /mesonbuild/scripts/yelphelper.py
parent841380acfe682023b0df9fa76debbe3030f31daa (diff)
downloadmeson-a2262103fb749b570c4096b43ee107ad7143c04e.zip
meson-a2262103fb749b570c4096b43ee107ad7143c04e.tar.gz
meson-a2262103fb749b570c4096b43ee107ad7143c04e.tar.bz2
Implement mlog.warning and use it everywhere for warnings
Prepends the string with 'WARNING:' in ANSI yellow. Closes https://github.com/mesonbuild/meson/issues/961
Diffstat (limited to 'mesonbuild/scripts/yelphelper.py')
-rw-r--r--mesonbuild/scripts/yelphelper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/scripts/yelphelper.py b/mesonbuild/scripts/yelphelper.py
index 00d713a..f33454d 100644
--- a/mesonbuild/scripts/yelphelper.py
+++ b/mesonbuild/scripts/yelphelper.py
@@ -75,7 +75,7 @@ def install_help(srcdir, blddir, sources, media, langs, install_dir, destdir, pr
outfile = os.path.join(indir, m)
if not os.path.exists(infile):
if lang == 'C':
- mlog.log(mlog.bold('Warning:'), 'Media file "%s" did not exist in C directory' %m)
+ mlog.warning('Media file "%s" did not exist in C directory' %m)
elif symlinks:
srcfile = os.path.join(c_install_dir, m)
mlog.log('Symlinking %s to %s.' %(outfile, srcfile))