add nightly minor/latest symlink to debian repos

This commit is contained in:
Jamie Murphy 2023-08-08 16:38:14 +01:00 committed by Daniel Wozniak
parent 7d198938ba
commit 4771edb58a

View file

@ -285,7 +285,11 @@ def debian(
ctx.info(f"Running '{' '.join(cmdline)}' ...")
ctx.run(*cmdline, cwd=create_repo_path)
if not nightly_build_from:
if nightly_build_from:
nightly_link = create_repo_path.parent / "minor/latest"
ctx.info(f"Creating '{nightly_link.relative_to(repo_path)}' symlink ...")
nightly_link.symlink_to(f"minor/{salt_version}")
else:
remote_versions = _get_remote_versions(
tools.utils.STAGING_BUCKET_NAME,
create_repo_path.parent.relative_to(repo_path),