mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Append the .0
for Photon OS, after checking supported versions
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
47de5e790b
commit
31d7bafc5b
1 changed files with 3 additions and 2 deletions
|
@ -381,13 +381,14 @@ def rpm(
|
|||
assert repo_path is not None
|
||||
assert key_id is not None
|
||||
|
||||
if distro == "photon":
|
||||
distro_version = f"{distro_version}.0"
|
||||
display_name = f"{distro.capitalize()} {distro_version}"
|
||||
if distro_version not in _rpm_distro_info[distro]:
|
||||
ctx.error(f"Support for {display_name} is missing.")
|
||||
ctx.exit(1)
|
||||
|
||||
if distro == "photon":
|
||||
distro_version = f"{distro_version}.0"
|
||||
|
||||
ctx.info("Creating repository directory structure ...")
|
||||
create_repo_path = create_top_level_repo_path(
|
||||
ctx,
|
||||
|
|
Loading…
Add table
Reference in a new issue