wrap: Check for common "provides" typo

It is a common mistake that is hard to find because Meson silently
ignore unknown sections. Better have an explicit error message.
pull/11502/head
Xavier Claessens 2 years ago committed by Jussi Pakkanen
parent d5ae94f571
commit 6f4973abad
  1. 2
      mesonbuild/wrap/wrap.py

@ -224,6 +224,8 @@ class PackageDefinition:
self.diff_files.append(path)
def parse_provide_section(self, config: configparser.ConfigParser) -> None:
if config.has_section('provides'):
raise WrapException('Unexpected "[provides]" section, did you mean "[provide]"?')
if config.has_section('provide'):
for k, v in config['provide'].items():
if k == 'dependency_names':

Loading…
Cancel
Save