mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Use download_file
for the windows packages as well
This commit is contained in:
parent
0ec60c70d2
commit
f952418e90
2 changed files with 1 additions and 6 deletions
|
@ -770,10 +770,8 @@ class SaltPkgInstall:
|
|||
win_pkg_url = f"https://repo.saltproject.io/windows/{win_pkg}"
|
||||
pkg_path = pathlib.Path(r"C:\TEMP", win_pkg)
|
||||
pkg_path.parent.mkdir(exist_ok=True)
|
||||
ret = requests.get(win_pkg_url)
|
||||
download_file(win_pkg_url, pkg_path)
|
||||
|
||||
with open(pkg_path, "wb") as fp:
|
||||
fp.write(ret.content)
|
||||
if self.file_ext == "msi":
|
||||
# Write a batch file to run the installer. It is impossible to
|
||||
# perform escaping of the START_MINION property that the MSI
|
||||
|
|
|
@ -161,9 +161,6 @@ def get_salt_releases(ctx: Context, repository: str) -> list[Version]:
|
|||
name = tag["name"]
|
||||
if name.startswith("v"):
|
||||
name = name[1:]
|
||||
if "-" in name:
|
||||
# We're not going to parse dash tags
|
||||
continue
|
||||
if "docs" in name:
|
||||
# We're not going to consider doc tags
|
||||
continue
|
||||
|
|
Loading…
Add table
Reference in a new issue