Respect MESON_INSTALL_QUIET in gettext.py

Fixes #8068.
This commit is contained in:
Daan De Meyer 2020-12-06 17:52:20 +00:00 committed by Jussi Pakkanen
parent 0efcb0be5f
commit afb5184ec9
1 changed files with 2 additions and 1 deletions

View File

@ -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: