interpreter: Empty list used to be allowed in install_headers/man

That change introduced when porting to @typed_pos_args breaks gtk4. We
could decide to deprecate/warn but should not error for backward
compatibility.
pull/8929/head
Xavier Claessens 3 years ago committed by Xavier Claessens
parent 6e0a0fd1da
commit 0bef89b0c2
  1. 4
      mesonbuild/interpreter/interpreter.py

@ -1881,7 +1881,7 @@ This will become a hard error in the future.''' % kwargs['input'], location=self
self.build.benchmarks.append(t) self.build.benchmarks.append(t)
mlog.debug('Adding benchmark', mlog.bold(t.name, True)) mlog.debug('Adding benchmark', mlog.bold(t.name, True))
@typed_pos_args('install_headers', varargs=(str, mesonlib.File), min_varargs=1) @typed_pos_args('install_headers', varargs=(str, mesonlib.File))
@typed_kwargs( @typed_kwargs(
'install_headers', 'install_headers',
KwargInfo('install_dir', (str, None)), KwargInfo('install_dir', (str, None)),
@ -1902,7 +1902,7 @@ This will become a hard error in the future.''' % kwargs['input'], location=self
return h return h
@typed_pos_args('install_man', varargs=(str, mesonlib.File), min_varargs=1) @typed_pos_args('install_man', varargs=(str, mesonlib.File))
@typed_kwargs( @typed_kwargs(
'install_man', 'install_man',
KwargInfo('install_dir', (str, None)), KwargInfo('install_dir', (str, None)),

Loading…
Cancel
Save