Skip to content

Commit fd5d495

Browse files
committed
Override host/target for src/docs if Qt >= 6.7.0
Fixes #775
1 parent 12051ad commit fd5d495

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

aqt/archives.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ def _append_depends_tool(self, arch, tool_name):
379379
def _get_archives_base(self, name, target_packages):
380380
os_target_folder = posixpath.join(
381381
"online/qtsdkrepository",
382-
self.os_name + ("_x86" if self.os_name == "windows" else "_x64"),
382+
self.os_name + ("_x86" if self.os_name == "windows" else ("" if self.os_name == "all_os" else "_x64")),
383383
self.target,
384384
# tools_ifw/
385385
name,

aqt/installer.py

+4
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,10 @@ def _run_src_doc_examples(self, flavor, args, cmd_name: Optional[str] = None):
473473
else:
474474
qt_version = args.qt_version
475475
Cli._validate_version_str(qt_version)
476+
# Override target/os for recent Qt
477+
if Version(qt_version) >= Version("6.7.0"):
478+
target = "qt"
479+
os_name = "all_os"
476480
if args.timeout is not None:
477481
timeout = (args.timeout, args.timeout)
478482
else:

0 commit comments

Comments
 (0)