mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix downgrade url for windows and mac
This commit is contained in:
parent
99b1b92306
commit
b8a19d13dd
1 changed files with 4 additions and 2 deletions
|
@ -786,7 +786,7 @@ class SaltPkgInstall:
|
|||
log.debug("Unknown windows file extension: %s", self.file_ext)
|
||||
|
||||
win_pkg_url = (
|
||||
f"{root_url}/saltproject-generic/windows/{major_ver}/{win_pkg}"
|
||||
f"{root_url}/saltproject-generic/windows/{self.prev_version}/{win_pkg}"
|
||||
)
|
||||
pkg_path = pathlib.Path(r"C:\TEMP", win_pkg)
|
||||
pkg_path.parent.mkdir(exist_ok=True)
|
||||
|
@ -823,7 +823,9 @@ class SaltPkgInstall:
|
|||
arch = "x86_64"
|
||||
|
||||
mac_pkg = f"salt-{self.prev_version}-py3-{arch}.pkg"
|
||||
mac_pkg_url = f"{root_url}/saltproject-generic/macos/{major_ver}/{mac_pkg}"
|
||||
mac_pkg_url = (
|
||||
f"{root_url}/saltproject-generic/macos/{self.prev_version}/{mac_pkg}"
|
||||
)
|
||||
|
||||
mac_pkg_path = f"/tmp/{mac_pkg}"
|
||||
if not os.path.exists(mac_pkg_path):
|
||||
|
|
Loading…
Add table
Reference in a new issue