diff options
| author | Eric Engestrom <eric@igalia.com> | 2025-09-12 17:11:56 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jussi.pakkanen@mailbox.org> | 2025-10-05 00:51:38 +0300 |
| commit | 2542fbfc1401109baf6c0de036135fb4fae59a2d (patch) | |
| tree | 770c41b33289d1d813910878c367874ba283e7c5 /mesonbuild/scripts | |
| parent | 684474eca63c32bf6d74c865430c03ead932ecc7 (diff) | |
| download | meson-2542fbfc1401109baf6c0de036135fb4fae59a2d.tar.gz | |
vcstagger: only strip the ending newlines, not all whitespaces before and after
Diffstat (limited to 'mesonbuild/scripts')
| -rw-r--r-- | mesonbuild/scripts/vcstagger.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/scripts/vcstagger.py b/mesonbuild/scripts/vcstagger.py index 26c1e81ae..ca94605c2 100644 --- a/mesonbuild/scripts/vcstagger.py +++ b/mesonbuild/scripts/vcstagger.py @@ -9,7 +9,7 @@ import typing as T def config_vcs_tag(infile: str, outfile: str, fallback: str, source_dir: str, replace_string: str, regex_selector: str, cmd: T.List[str]) -> None: try: output = subprocess.check_output(cmd, cwd=source_dir) - new_string = re.search(regex_selector, output.decode()).group(1).strip() + new_string = re.search(regex_selector, output.decode()).group(1).rstrip('\r\n') except Exception: new_string = fallback |
