Skip to content

Commit

Permalink
add nightly minor/latest symlink to debian repos
Browse files Browse the repository at this point in the history
  • Loading branch information
ITJamie authored and dwoz committed Dec 18, 2023
1 parent 7d19893 commit 4771edb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tools/pkg/repo/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 4771edb

Please sign in to comment.