diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2020-12-06 17:52:20 +0000 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2020-12-10 00:29:40 +0200 |
commit | afb5184ec900ece9dc078b6b822233fa80576efd (patch) | |
tree | 2ac94ee886455818a8d83c4251d475c90694091d | |
parent | 0efcb0be5f1aa834f6dcfcaba1d3a1ce487a6982 (diff) | |
download | meson-afb5184ec900ece9dc078b6b822233fa80576efd.zip meson-afb5184ec900ece9dc078b6b822233fa80576efd.tar.gz meson-afb5184ec900ece9dc078b6b822233fa80576efd.tar.bz2 |
Respect MESON_INSTALL_QUIET in gettext.py
Fixes #8068.
-rw-r--r-- | mesonbuild/scripts/gettext.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/scripts/gettext.py b/mesonbuild/scripts/gettext.py index 547d14f..64c228b 100644 --- a/mesonbuild/scripts/gettext.py +++ b/mesonbuild/scripts/gettext.py @@ -86,7 +86,8 @@ def do_install(src_sub: str, bld_sub: str, dest: str, pkgname: str, langs: T.Lis os.makedirs(os.path.dirname(outfile), exist_ok=True) shutil.copy2(srcfile, tempfile) os.replace(tempfile, outfile) - print('Installing %s to %s' % (srcfile, outfile)) + if not os.getenv('MESON_INSTALL_QUIET', False): + print('Installing %s to %s' % (srcfile, outfile)) return 0 def run(args: T.List[str]) -> int: |