mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-28 05:49:33 +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):
|
||||
|
@ -359,9 +359,9 @@ if make_release and PLATFORM == 'native_dyn':
|
||||
except FileExistsError:
|
||||
pass
|
||||
|
||||
in_file = BASE_DIR/target/'meson-dist'/'{}-{}.tar.xz'.format(
|
||||
target,
|
||||
main_project_versions[target])
|
||||
full_target_name = "{}-{}".format(target, main_project_versions[target])
|
||||
in_file = BASE_DIR/full_target_name/'meson-dist'/'{}.tar.xz'.format(
|
||||
full_target_name)
|
||||
if in_file.exists():
|
||||
shutil.copy(str(in_file), str(out_dir/target))
|
||||
elif PLATFORM == 'native_static':
|
||||
|
Reference in New Issue
Block a user