Allow a dependency to declare extra_packages to install.

This is different from declaring a dependency as dependency may be build
by kiwix-build.py.
This commit is contained in:
Matthieu Gautier 2017-03-21 17:00:22 +01:00
parent 50c56804b1
commit b62388bae1
1 changed files with 4 additions and 0 deletions

View File

@ -452,6 +452,10 @@ class BuildEnv:
if packages: if packages:
packages_list += packages packages_list += packages
dep.skip = True dep.skip = True
for dep in self.targetsDict.values():
packages = getattr(dep, 'extra_packages', [])
for package in packages:
packages_list += package_name_mapper.get(package, [])
if os.path.exists(autoskip_file): if os.path.exists(autoskip_file):
print("SKIP") print("SKIP")
return return