diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-10-28 17:59:11 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2021-11-20 20:48:29 -0500 |
commit | 4a65f3dead0d230312bd8a58f8fc1df642389033 (patch) | |
tree | a10f4ab5bdfb8dcfe274a32dedf56b42a996b9ba /mesonbuild/modules/gnome.py | |
parent | 61ca56422b38cb3807ad488e81532b601c89f2d4 (diff) | |
download | meson-4a65f3dead0d230312bd8a58f8fc1df642389033.zip meson-4a65f3dead0d230312bd8a58f8fc1df642389033.tar.gz meson-4a65f3dead0d230312bd8a58f8fc1df642389033.tar.bz2 |
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.
Diffstat (limited to 'mesonbuild/modules/gnome.py')
-rw-r--r-- | mesonbuild/modules/gnome.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 962bbb1..d43ceec 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: |