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/modules/__init__.py | |
| parent | 6c5bfd4c241e94f5e0f4dea9ba7fb5d5090a4802 (diff) | |
| download | meson-d661a0cd96e2453e8e4629c867589657b81239d1.tar.gz | |
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/modules/__init__.py')
| -rw-r--r-- | mesonbuild/modules/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/__init__.py b/mesonbuild/modules/__init__.py index 8f641200a..0129909a5 100644 --- a/mesonbuild/modules/__init__.py +++ b/mesonbuild/modules/__init__.py @@ -45,7 +45,7 @@ class ModuleState: self.current_lineno = interpreter.current_lineno self.environment = interpreter.environment self.project_name = interpreter.build.project_name - self.project_version = interpreter.build.dep_manifest[interpreter.active_projectname] + self.project_version = interpreter.build.dep_manifest[interpreter.active_projectname].version # The backend object is under-used right now, but we will need it: # https://github.com/mesonbuild/meson/issues/1419 self.backend = interpreter.backend |
