diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-11-01 12:31:23 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-11-29 18:12:33 -0800 |
commit | 3a168513bd4ff041143ee9b4ba84d97dbcd13169 (patch) | |
tree | bc09d5b75030548ba990f8eb7a05451e1c2adb47 /mesonbuild/programs.py | |
parent | 3c039f42a066a9ae43789bcce3b2dd14ba077d82 (diff) | |
download | meson-3a168513bd4ff041143ee9b4ba84d97dbcd13169.zip meson-3a168513bd4ff041143ee9b4ba84d97dbcd13169.tar.gz meson-3a168513bd4ff041143ee9b4ba84d97dbcd13169.tar.bz2 |
interpreter: use typed_pos_args for run_command
Diffstat (limited to 'mesonbuild/programs.py')
-rw-r--r-- | mesonbuild/programs.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/programs.py b/mesonbuild/programs.py index 48593cb..eefdc74 100644 --- a/mesonbuild/programs.py +++ b/mesonbuild/programs.py @@ -103,8 +103,7 @@ class ExternalProgram(mesonlib.HoldableObject): def get_version(self, interpreter: 'Interpreter') -> str: if not self.cached_version: raw_cmd = self.get_command() + ['--version'] - cmd: T.List[T.Union[str, ExternalProgram]] = [self, '--version'] - res = interpreter.run_command_impl(interpreter.current_node, cmd, {}, True) + res = interpreter.run_command_impl(interpreter.current_node, (self, ['--version']), {}, True) if res.returncode != 0: raise mesonlib.MesonException(f'Running {raw_cmd!r} failed') output = res.stdout.strip() |