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.
This commit is contained in:
Matthieu Gautier 2018-12-12 11:31:50 +01:00
parent ac0685877b
commit f9610ce3b3
1 changed files with 4 additions and 0 deletions

View File

@ -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)