mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-27 21:39:34 +00:00
Correctly find the version of a dependency.
We have separated the version in two separated dicts since a long time :/
This commit is contained in:
@ -24,7 +24,10 @@ class Dependency(metaclass=_MetaDependency):
|
||||
|
||||
@classmethod
|
||||
def version(cls):
|
||||
return base_deps_versions.get(cls.name, None)
|
||||
if cls.name in base_deps_versions:
|
||||
return base_deps_versions[cls.name]
|
||||
else:
|
||||
return main_project_versions.get(cls.name, None)
|
||||
|
||||
@classmethod
|
||||
def full_name(cls):
|
||||
|
Reference in New Issue
Block a user