fix nightly repofile path

This commit is contained in:
Jamie (Bear) Murphy 2023-08-02 10:49:29 +01:00 committed by Pedro Algarvio
parent 2974390263
commit a58a741150

View file

@ -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/"