From b62388bae16ce17eb6abbcc921839ceb8d5c3492 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Tue, 21 Mar 2017 17:00:22 +0100 Subject: [PATCH] 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. --- kiwix-build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kiwix-build.py b/kiwix-build.py index b1d75fd..e4f0b77 100755 --- a/kiwix-build.py +++ b/kiwix-build.py @@ -452,6 +452,10 @@ class BuildEnv: if packages: packages_list += packages 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): print("SKIP") return