diff --git a/distribution/update_version.py b/distribution/update_version.py index 8422dfce354..0f567cd2140 100755 --- a/distribution/update_version.py +++ b/distribution/update_version.py @@ -336,7 +336,7 @@ def update_pixi(version: Version): tag = "version =" with open(path, "w") as fp: for line in lines: - if tag in line: + if line.startswith(tag): line = f'{tag} "{version}"\n' fp.write(line)