Install all listed tools
@@ -414,10 +414,6 @@ class Cli:
target = args.target # desktop, android and ios
tool_name = args.tool_name # such as tools_openssl_x64
output_dir = args.outputdir
- arch = args.arch
- if arch is None:
- getArch = ListCommand(archive_id=ArchiveId("tools", os_name, target, ""), is_latest_version=True, tool_name=tool_name)
- arch = getArch.action().get(0)
if output_dir is None:
base_dir = os.getcwd()
else:
@@ -436,6 +432,12 @@ class Cli:
timeout = (args.timeout, args.timeout)
else:
timeout = (Settings.connection_timeout, Settings.response_timeout)
+ if args.arch is None:
+ archs = ListCommand(archive_id=ArchiveId("tools", os_name, target, ""), is_latest_version=True, tool_name=tool_name).action()
+ else:
+ archs = [args.arch]
+
+ for arch in archs:
if not self._check_tools_arg_combination(os_name, tool_name, arch):
self.logger.warning(
"Specified target combination is not valid: {} {} {}".format(
