mirror of
https://github.com/ryanvolz/radioconda.git
synced 2024-09-19 20:16:34 -04:00
Add newlines to post_install scripts.
This commit is contained in:
parent
8cf14767a8
commit
41c8754126
@ -105,10 +105,10 @@ def render_constructor_specs(
|
|||||||
# write the post_install scripts referenced in the construct dict
|
# write the post_install scripts referenced in the construct dict
|
||||||
if platform.startswith("win"):
|
if platform.startswith("win"):
|
||||||
with (constructor_dir / "post_install.bat").open("w") as f:
|
with (constructor_dir / "post_install.bat").open("w") as f:
|
||||||
f.writelines((r"del /q %PREFIX%\pkgs\*.tar.bz2", ""))
|
f.write("\n".join((r"del /q %PREFIX%\pkgs\*.tar.bz2", "")))
|
||||||
else:
|
else:
|
||||||
with (constructor_dir / "post_install.sh").open("w") as f:
|
with (constructor_dir / "post_install.sh").open("w") as f:
|
||||||
f.writelines((r"rm -f $PREFIX/pkgs/*.tar.bz2", ""))
|
f.write("\n".join((r"rm -f $PREFIX/pkgs/*.tar.bz2", "")))
|
||||||
|
|
||||||
construct_yaml_path = constructor_dir / "construct.yaml"
|
construct_yaml_path = constructor_dir / "construct.yaml"
|
||||||
with construct_yaml_path.open("w") as f:
|
with construct_yaml_path.open("w") as f:
|
||||||
@ -121,7 +121,7 @@ def render_constructor_specs(
|
|||||||
lockfile_contents.extend(rendered_full_lock_spec.specs)
|
lockfile_contents.extend(rendered_full_lock_spec.specs)
|
||||||
lock_file_path = constructor_dir / f"{constructor_name}.txt"
|
lock_file_path = constructor_dir / f"{constructor_name}.txt"
|
||||||
with lock_file_path.open("w") as f:
|
with lock_file_path.open("w") as f:
|
||||||
f.writelines(s + "\n" for s in lockfile_contents)
|
f.write("\n".join(lockfile_contents))
|
||||||
|
|
||||||
return constructor_specs
|
return constructor_specs
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user