mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-09-25 22:13:26 -04: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:
parent
a91d85fa41
commit
df0b684869
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user