Skip to content

Commit

Permalink
Take into account target when determining repository paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
rectalogic committed Mar 4, 2024
1 parent acac346 commit 40f1a75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aqt/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,10 @@ def repository_path_for_os(os_name: str, arch: str) -> str:
return os_name + "_x64"


def repository_paths_for_os(os_name: str, version: Optional[Version] = None) -> Tuple[str, ...]:
def repository_paths_for_os(os_name: str, target: str, version: Optional[Version] = None) -> Tuple[str, ...]:
if os_name == "windows":
return ("windows_x86",)
elif os_name == "linux" and (version is None or version >= Version("6.7.0")):
elif os_name == "linux" and target == "desktop" and (version is None or version >= Version("6.7.0")):
return ("linux_x64", "linux_arm64")
else:
return (os_name + "_x64",)
Expand Down Expand Up @@ -252,7 +252,7 @@ def to_urls(self, version: Optional[Version] = None) -> List[str]:
os_path=os_path,
target=self.target,
)
for os_path in repository_paths_for_os(self.host, version)
for os_path in repository_paths_for_os(self.host, self.target, version)
]

def to_folder(self, qt_version_no_dots: str, extension: Optional[str] = None) -> str:
Expand Down

0 comments on commit 40f1a75

Please sign in to comment.