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
pull/9344/head
Dylan Baker 3 years ago committed by Xavier Claessens
parent 6d1e182476
commit bd00ea6b13
  1. 2
      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)

Loading…
Cancel
Save