Fix bad logic when building the repository path

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-03-01 09:40:10 +00:00 committed by Pedro Algarvio
parent af7c525489
commit e17279d9d2

View file

@ -1269,7 +1269,7 @@ def github(
release_message = f"""\
# Welcome to Salt v{salt_version}
| :exclamation: ATTENTION |
| :exclamation: ATTENTION |
|:-------------------------------------------------------------------------------------------------------------------------|
| The archives generated by GitHub(`Source code(zip)`, `Source code(tar.gz)`) will not report Salt's version properly. |
| Please use the tarball generated by The Salt Project Team(`salt-{salt_version}.tar.gz`).
@ -1777,7 +1777,7 @@ def _create_repo_path(
create_repo_path = repo_path
if nightly_build:
create_repo_path = create_repo_path / "salt-dev"
elif nightly_build:
elif rc_build:
create_repo_path = create_repo_path / "salt_rc"
create_repo_path = create_repo_path / "salt" / "py3" / distro
if distro_version: