Windows has multiple package types, change the setup condition to reflect that

This commit is contained in:
MKLeb 2023-06-07 12:04:57 -04:00 committed by Megan Wilhite
parent 95d8e03a10
commit 6518cedcb5

View file

@ -459,7 +459,7 @@ def setup_windows(
):
try:
arch = os.environ.get("SALT_REPO_ARCH") or "amd64"
if package_type == "package":
if package_type != "onedir":
root_dir = pathlib.Path(r"C:\Program Files\Salt Project\Salt")
if packaging.version.parse(salt_release) > packaging.version.parse("3005"):