modules/gnome: Fix case that could never be hit due to bad types

It's impossible to get a Holder here, we'd get the unholdered build
types. Mypy points this out for us.
pull/9344/head
Dylan Baker 3 years ago committed by Xavier Claessens
parent bd00ea6b13
commit cfa6ff52e9
  1. 6
      mesonbuild/modules/gnome.py

@ -222,9 +222,9 @@ class GnomeModule(ExtensionModule):
ifile = os.path.join(ifile.subdir, ifile.fname)
elif isinstance(ifile, str):
ifile = os.path.join(state.subdir, ifile)
elif isinstance(ifile, (interpreter.CustomTargetHolder,
interpreter.CustomTargetIndexHolder,
interpreter.GeneratedObjectsHolder)):
elif isinstance(ifile, (build.CustomTarget,
build.CustomTargetIndex,
build.GeneratedList)):
m = 'Resource xml files generated at build-time cannot be used ' \
'with gnome.compile_resources() because we need to scan ' \
'the xml for dependencies. Use configure_file() instead ' \

Loading…
Cancel
Save