From 4a65f3dead0d230312bd8a58f8fc1df642389033 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 28 Oct 2021 17:59:11 -0400 Subject: [PATCH] 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. --- mesonbuild/modules/gnome.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 962bbb10f..d43ceeca6 100644 --- a/mesonbuild/modules/gnome.py +++ b/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: