diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2021-10-28 15:35:42 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-10-28 17:41:51 -0400 |
commit | ec161fca4dc0731a1cf9c6f1663d611a33e405d9 (patch) | |
tree | a76eebbf7327750f989fdb2b524c99ec6d982449 /mesonbuild/interpreter | |
parent | c8ea5dfe8adc01c32c6f88dfeed13f15a659929f (diff) | |
download | meson-ec161fca4dc0731a1cf9c6f1663d611a33e405d9.zip meson-ec161fca4dc0731a1cf9c6f1663d611a33e405d9.tar.gz meson-ec161fca4dc0731a1cf9c6f1663d611a33e405d9.tar.bz2 |
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.
Diffstat (limited to 'mesonbuild/interpreter')
-rw-r--r-- | mesonbuild/interpreter/interpreter.py | 4 |
1 files changed, 2 insertions, 2 deletions
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. ' |