From 2542fbfc1401109baf6c0de036135fb4fae59a2d Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Fri, 12 Sep 2025 17:11:56 +0200 Subject: vcstagger: only strip the ending newlines, not all whitespaces before and after --- mesonbuild/scripts/vcstagger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3