Skip to content

Commit 491c659

Browse files
committed
mpi_pin_run_as_build: avoid stripping trailing newline
1 parent 6d7adb8 commit 491c659

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

conda_forge_tick/migrators/mpi_pin_run_as_build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ def migrate(self, recipe_dir, attrs, **kwargs):
9292
if len(new_lines) > 0:
9393
with open(fname, "w") as fp:
9494
fp.write("\n".join(new_lines))
95+
if new_lines[-1]:
96+
# ensure trailing newline
97+
fp.write("\n")
9598
else:
9699
with pushd(recipe_dir):
97100
subprocess.run(["rm", "-f", "conda_build_config.yaml"])

0 commit comments

Comments
 (0)