From f9610ce3b30972d3ef6d51bc010ad4e40ef468cf Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Wed, 12 Dec 2018 11:31:50 +0100 Subject: [PATCH] Move the `sources` at the end of the modules. It is the usage to have `sources` attribute at the end of the module definition in flatpak manifest. Let's follow it. --- kiwixbuild/flatpak_builder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kiwixbuild/flatpak_builder.py b/kiwixbuild/flatpak_builder.py index ed1ce6e..b28f5e8 100644 --- a/kiwixbuild/flatpak_builder.py +++ b/kiwixbuild/flatpak_builder.py @@ -187,6 +187,10 @@ class FlatpakBuilder: manifest = MANIFEST.copy() modules = [m for m in modules.values() if m.get('sources')] + for m in modules: + temp = m['sources'] + del m['sources'] + m['sources'] = temp manifest['modules'] = modules manifest_name = "{}.json".format(MANIFEST['app-id']) manifest_path = pj(self.platform.buildEnv.build_dir, manifest_name)