Do not keep "empty" modules (without sources).
`org.kde` dependency has no source. It used by kiwix-build to install the correct sdk/platform.
This commit is contained in:
parent
abf0e639e1
commit
ac0685877b
|
@ -186,7 +186,8 @@ class FlatpakBuilder:
|
||||||
module['config-opts'] = builder.configure_option.split(' ')
|
module['config-opts'] = builder.configure_option.split(' ')
|
||||||
|
|
||||||
manifest = MANIFEST.copy()
|
manifest = MANIFEST.copy()
|
||||||
manifest['modules'] = list(modules.values())
|
modules = [m for m in modules.values() if m.get('sources')]
|
||||||
|
manifest['modules'] = modules
|
||||||
manifest_name = "{}.json".format(MANIFEST['app-id'])
|
manifest_name = "{}.json".format(MANIFEST['app-id'])
|
||||||
manifest_path = pj(self.platform.buildEnv.build_dir, manifest_name)
|
manifest_path = pj(self.platform.buildEnv.build_dir, manifest_name)
|
||||||
with open(manifest_path, 'w') as f:
|
with open(manifest_path, 'w') as f:
|
||||||
|
|
Loading…
Reference in New Issue