mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-28 05:49:33 +00:00
Correctly extract platform from the dependency.
If the `dep` is a two char string (as "qt"), the `platform, name = dep` will split the string and search for 't' dependency in 'q' platform. So, we have to be sure that the dep is a tuple before splitting it.
This commit is contained in:
@ -68,9 +68,9 @@ class Builder:
|
||||
|
||||
targetPlatform = PlatformInfo.get_platform(targetPlatformName)
|
||||
for dep in target.get_dependencies(targetPlatform, True):
|
||||
try:
|
||||
if isinstance(dep, tuple):
|
||||
depPlatform, depName = dep
|
||||
except ValueError:
|
||||
else:
|
||||
depPlatform, depName = targetPlatformName, dep
|
||||
if (depPlatform, depName) in targets:
|
||||
yield from self.order_dependencies((depPlatform, depName), targets)
|
||||
|
Reference in New Issue
Block a user