From bd00ea6b136ad97bf1c40bb4b55fe1057c474b6e Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 7 Oct 2021 09:23:45 -0700 Subject: [PATCH] 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 --- mesonbuild/modules/gnome.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 739faec76..5921475c4 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)