diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-05-17 15:12:53 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-05-17 16:54:16 -0400 |
commit | cf86b2f9a1826f6e75e043309469f0856b82fb0c (patch) | |
tree | 2bdc3de5e842c0eb78e454880a17019d8aaa9546 | |
parent | 9fe18a63b1c2a34753e8fe6a5cf7b204cbbfb5e9 (diff) | |
download | meson-cf86b2f9a1826f6e75e043309469f0856b82fb0c.zip meson-cf86b2f9a1826f6e75e043309469f0856b82fb0c.tar.gz meson-cf86b2f9a1826f6e75e043309469f0856b82fb0c.tar.bz2 |
fix incorrect FeatureNew for separator kwarg in environment object methods
In commit 6acfe48f32110671a0adf80ad3497a35105b265d, the kwarg was added
to environment() in addition to the env object methods. As part of the
associated refactor, a shared KwargInfo was used, and evolved to be new
since 0.62.0 in the two cases where it is in fact new.
However, it *also* set the base KwargInfo for the exact same newness,
which is wrong as it was present ever since the initial introduction in
0.34.0
As usual for anything that predates 0.37.0 we simply don't tag
FeatureNew. Revert this back to the same KwargInfo definition from
before the refactoring commit.
Fixes #10402
-rw-r--r-- | mesonbuild/interpreter/type_checking.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/type_checking.py b/mesonbuild/interpreter/type_checking.py index 37ab192..328f032 100644 --- a/mesonbuild/interpreter/type_checking.py +++ b/mesonbuild/interpreter/type_checking.py @@ -336,4 +336,4 @@ DEFAULT_OPTIONS: KwargInfo[T.List[str]] = KwargInfo( ENV_METHOD_KW = KwargInfo('method', str, default='set', since='0.62.0', validator=in_set_validator({'set', 'prepend', 'append'})) -ENV_SEPARATOR_KW = KwargInfo('separator', str, default=os.pathsep, since='0.62.0') +ENV_SEPARATOR_KW = KwargInfo('separator', str, default=os.pathsep) |