fix missing subproject kwarg to FeatureDeprecated

We went straight to the extra message, which when parsed as a subproject
string resulted in the Feature being entirely skipped because "project()
has not been parsed yet" as it could not find a subproject named that.
pull/9488/head
Eli Schwartz 3 years ago
parent 61ca56422b
commit 4a65f3dead
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 3
      mesonbuild/modules/gnome.py

@ -1046,7 +1046,8 @@ class GnomeModule(ExtensionModule):
project_id = args[0]
sources = kwargs['sources']
if args[1]:
FeatureDeprecated.single_use('gnome.yelp more than one positional argument', '0.60.0', 'use the "sources" keyword argument instead.')
FeatureDeprecated.single_use('gnome.yelp more than one positional argument', '0.60.0',
state.subproject, 'use the "sources" keyword argument instead.')
if not sources:
sources = args[1]
if not sources:

Loading…
Cancel
Save