diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-10-07 09:23:45 -0700 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-10-08 08:44:30 -0400 |
commit | bd00ea6b136ad97bf1c40bb4b55fe1057c474b6e (patch) | |
tree | 96d5285a4e972b0dc339fb4c1cc4f231b7d8ed40 | |
parent | 6d1e18247650b59a47ee7cdb200be0ef38d3b258 (diff) | |
download | meson-bd00ea6b136ad97bf1c40bb4b55fe1057c474b6e.zip meson-bd00ea6b136ad97bf1c40bb4b55fe1057c474b6e.tar.gz meson-bd00ea6b136ad97bf1c40bb4b55fe1057c474b6e.tar.bz2 |
modules/gnome: fix use of undefined variable
Theere is no 'output' key in the kwargs, so if this was it it would
result in an exception. Mypy spotted this in a branch I'm working on
full typing for gnome, but since that seems unlikely to be done before
the 0.60 branchpoint I'd like to get this in sooner
-rw-r--r-- | mesonbuild/modules/gnome.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 739faec..5921475 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -286,7 +286,7 @@ class GnomeModule(ExtensionModule): kwargs['depend_files'] = depend_files kwargs['command'] = cmd else: - depfile = kwargs['output'] + '.d' + depfile = f'{output}.d' kwargs['depfile'] = depfile kwargs['command'] = copy.copy(cmd) + ['--dependency-file', '@DEPFILE@'] target_c = GResourceTarget(name, state.subdir, state.subproject, kwargs) |