diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2024-08-20 12:23:49 -0700 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2024-08-23 22:46:16 +0300 |
| commit | 49cc4862e7448e2e1a879c28274ced7175100dd8 (patch) | |
| tree | 7409e12aae5c6f42836364e2cd089f547031bc83 | |
| parent | 45db23394f2dc5e26050c2ede76be79c70f50ca5 (diff) | |
| download | meson-49cc4862e7448e2e1a879c28274ced7175100dd8.tar.gz | |
mdist: don't mutate meson_command, which is supposed to be immutable
| -rw-r--r-- | mesonbuild/mdist.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/mdist.py b/mesonbuild/mdist.py index 8e35bb8e8..05c23f53f 100644 --- a/mesonbuild/mdist.py +++ b/mesonbuild/mdist.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: Apache-2.0 # Copyright 2017 The Meson development team -# Copyright © 2023 Intel Corporation +# Copyright © 2023-2024 Intel Corporation from __future__ import annotations @@ -289,7 +289,7 @@ def run_dist_steps(meson_command: T.List[str], unpacked_src_dir: str, builddir: return 1 return 0 -def check_dist(packagename: str, meson_command: ImmutableListProtocol[str], extra_meson_args: T.List[str], bld_root: str, privdir: str) -> int: +def check_dist(packagename: str, _meson_command: ImmutableListProtocol[str], extra_meson_args: T.List[str], bld_root: str, privdir: str) -> int: print(f'Testing distribution package {packagename}') unpackdir = os.path.join(privdir, 'dist-unpack') builddir = os.path.join(privdir, 'dist-build') @@ -303,6 +303,7 @@ def check_dist(packagename: str, meson_command: ImmutableListProtocol[str], extr unpacked_files = glob(os.path.join(unpackdir, '*')) assert len(unpacked_files) == 1 unpacked_src_dir = unpacked_files[0] + meson_command = _meson_command.copy() meson_command += ['setup'] meson_command += create_cmdline_args(bld_root) meson_command += extra_meson_args |
