Android: Fix OS-specific parsing in parseDependenciesJson

The Linux-specific sdk_essential_packages should not be installed if on
Windows.

Change-Id: I6b13a131785c7a76a35abf282dacdf915781e6d1
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Alessandro Portale
2022-07-01 11:24:19 +02:00
parent d69cf8096d
commit 8a83938886

View File

@@ -336,7 +336,7 @@ void AndroidConfig::parseDependenciesJson()
if (HostOsInfo::isWindowsHost())
appendEssentialsFromArray(commonEssentials[WindowsOsKey].toArray());
if (HostOsInfo::isMacHost())
else if (HostOsInfo::isMacHost())
appendEssentialsFromArray(commonEssentials[macOsKey].toArray());
else
appendEssentialsFromArray(commonEssentials[LinuxOsKey].toArray());