mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix nightly repofile path
This commit is contained in:
parent
2974390263
commit
a58a741150
1 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@ import pathlib
|
|||
import shutil
|
||||
import sys
|
||||
import textwrap
|
||||
from datetime import datetime
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from ptscripts import Context, command_group
|
||||
|
@ -487,7 +488,7 @@ def rpm(
|
|||
def _create_repo_file(create_repo_path, url_suffix):
|
||||
ctx.info(f"Creating '{repo_file_path.relative_to(repo_path)}' file ...")
|
||||
if nightly_build_from:
|
||||
base_url = f"salt-dev/{nightly_build_from}/"
|
||||
base_url = f"salt-dev/{nightly_build_from}/latest/{datetime.utcnow().strftime("%Y-%m-%d") }"
|
||||
repo_file_contents = "[salt-nightly-repo]"
|
||||
elif "rc" in salt_version:
|
||||
base_url = "salt_rc/"
|
||||
|
|
Loading…
Add table
Reference in a new issue