aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/interpreter.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-01-25 21:45:49 -0500
committerEli Schwartz <eschwartz@archlinux.org>2022-01-27 22:11:47 -0500
commit1913a4246c6a0c0204e29e4957cafa937b251d01 (patch)
treee5f16298a050df41e88c7b67bac27aa867a66a7e /mesonbuild/interpreter/interpreter.py
parent0db2de2b0a560782dd37c63ab83743affa885111 (diff)
downloadmeson-1913a4246c6a0c0204e29e4957cafa937b251d01.zip
meson-1913a4246c6a0c0204e29e4957cafa937b251d01.tar.gz
meson-1913a4246c6a0c0204e29e4957cafa937b251d01.tar.bz2
pkgconfig module: fix incorrect Feature logging for uninstalled_variables
The utility function that processes this for both 'variables' and 'uninstalled_variables' accepts a kwarg for the name of the argument, but then hardcodes 'variables' in the warning message. This is misleading.
Diffstat (limited to 'mesonbuild/interpreter/interpreter.py')
-rw-r--r--mesonbuild/interpreter/interpreter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 28601b9..19e0f96 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -608,11 +608,11 @@ class Interpreter(InterpreterBase, HoldableObject):
variables = kwargs.get(argname, {})
if isinstance(variables, dict):
if dict_new and variables:
- FeatureNew.single_use('variables as dictionary', '0.56.0', self.subproject)
+ FeatureNew.single_use(f'{argname} as dictionary', '0.56.0', self.subproject)
else:
varlist = mesonlib.stringlistify(variables)
if list_new:
- FeatureNew.single_use('variables as list of strings', '0.56.0', self.subproject)
+ FeatureNew.single_use(f'{argname} as list of strings', '0.56.0', self.subproject)
variables = collections.OrderedDict()
for v in varlist:
try: