Use download_file for the windows packages as well

This commit is contained in:
MKLeb 2023-06-21 16:01:28 -04:00 committed by Gareth J. Greenaway
parent 0ec60c70d2
commit f952418e90
2 changed files with 1 additions and 6 deletions

View file

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

View file

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