diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-07-27 15:26:02 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-09-24 10:36:05 -0700 |
commit | d661a0cd96e2453e8e4629c867589657b81239d1 (patch) | |
tree | dfe6acbb7a20b0f2a43e334470a311aa8f754122 /mesonbuild/interpreter/interpreter.py | |
parent | 6c5bfd4c241e94f5e0f4dea9ba7fb5d5090a4802 (diff) | |
download | meson-d661a0cd96e2453e8e4629c867589657b81239d1.zip meson-d661a0cd96e2453e8e4629c867589657b81239d1.tar.gz meson-d661a0cd96e2453e8e4629c867589657b81239d1.tar.bz2 |
build: use an object rather than a dict for the dep_manifest
This really is more of a struct than a dict, as the types are disjoint
and they are internally handled, (ie, not from user input). This cleans
some things up, in addition I spotted a bug in the ModuleState where the
dict with the version and license is passed to a field that expects just
the version string.
Diffstat (limited to 'mesonbuild/interpreter/interpreter.py')
-rw-r--r-- | mesonbuild/interpreter/interpreter.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index 1d360eb..c6aafb9 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -1060,8 +1060,7 @@ external dependencies (including libraries) must go to "dependencies".''') if self.build.project_version is None: self.build.project_version = self.project_version proj_license = mesonlib.stringlistify(kwargs.get('license', 'unknown')) - self.build.dep_manifest[proj_name] = {'version': self.project_version, - 'license': proj_license} + self.build.dep_manifest[proj_name] = build.DepManifest(self.project_version, proj_license) if self.subproject in self.build.projects: raise InvalidCode('Second call to project().') |