From ec161fca4dc0731a1cf9c6f1663d611a33e405d9 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 28 Oct 2021 15:35:42 -0400 Subject: configure_file: upgrade deprecation message to FeatureDeprecated install: false was only available since 0.50, so we should not warn people who support older versions to use something they cannot. Fortunately, we can do FeatureDeprecated for this -- and then it even gets summarized. Unfortunately, it's not well used, and certainly isn't here. --- mesonbuild/interpreter/interpreter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesonbuild') diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index abf0146..f1dcaff 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -2232,8 +2232,8 @@ This will become a hard error in the future.''' % kwargs['input'], location=self idir = kwargs.get('install_dir', '') if idir is False: idir = '' - mlog.deprecation('Please use the new `install:` kwarg instead of passing ' - '`false` to `install_dir:`', location=node) + FeatureDeprecated.single_use('configure_file install_dir: false', '0.50.0', + self.subproject, 'Use the `install:` kwarg instead') if not isinstance(idir, str): if isinstance(idir, list) and len(idir) == 0: mlog.deprecation('install_dir: kwarg must be a string and not an empty array. ' -- cgit v1.1