From 76c636daac9bd2c7d7fb32b6930af2b0d8a6e020 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 14 May 2020 17:43:43 +0530 Subject: [PATCH] cmake: Fix string substitution index error ``` File "mesonbuild/cmake/interpreter.py", line 293, in postprocess 'Unknown {}_std "{}" -> Ingoring. Try setting the project' IndexError: Replacement index 2 out of range for positional args tuple ``` --- mesonbuild/cmake/interpreter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesonbuild/cmake/interpreter.py b/mesonbuild/cmake/interpreter.py index 0a452d148..1e033c76b 100644 --- a/mesonbuild/cmake/interpreter.py +++ b/mesonbuild/cmake/interpreter.py @@ -292,8 +292,8 @@ class ConverterTarget: std = m.group(2) if std not in self._all_lang_stds(i): mlog.warning( - 'Unknown {}_std "{}" -> Ingoring. Try setting the project' - 'level {}_std if build errors occur.'.format(i, std), + 'Unknown {0}_std "{1}" -> Ignoring. Try setting the project-' + 'level {0}_std if build errors occur.'.format(i, std), once=True ) continue