aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/pkgconfig.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-01-12 10:50:22 -0800
committerDylan Baker <dylan@pnwbakers.com>2021-01-13 13:32:48 -0800
commit022632c91b255739c5100601a02b197cb29cd23e (patch)
tree1b624726c0f5d801f7588e054a34bf70c4f8b8cb /mesonbuild/modules/pkgconfig.py
parent6180992d4939f931aaeae74138dae069a60a3485 (diff)
downloadmeson-022632c91b255739c5100601a02b197cb29cd23e.zip
meson-022632c91b255739c5100601a02b197cb29cd23e.tar.gz
meson-022632c91b255739c5100601a02b197cb29cd23e.tar.bz2
build/interperter: Add annotations and move input validation to interpreter
This moves the user input validation to the interpreter, instead of being in the build module, and adds type annotations.
Diffstat (limited to 'mesonbuild/modules/pkgconfig.py')
-rw-r--r--mesonbuild/modules/pkgconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py
index 7d347a6..db589a3 100644
--- a/mesonbuild/modules/pkgconfig.py
+++ b/mesonbuild/modules/pkgconfig.py
@@ -539,7 +539,7 @@ class PkgConfigModule(ExtensionModule):
self.generate_pkgconfig_file(state, deps, subdirs, name, description, url,
version, pcfile, conflicts, variables,
False, dataonly)
- res = build.Data(mesonlib.File(True, state.environment.get_scratch_dir(), pcfile), pkgroot)
+ res = build.Data([mesonlib.File(True, state.environment.get_scratch_dir(), pcfile)], pkgroot)
variables = self.interpreter.extract_variables(kwargs, argname='uninstalled_variables', dict_new=True)
variables = parse_variable_list(variables)