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:
parent
ac0685877b
commit
f9610ce3b3
|
@ -187,6 +187,10 @@ class FlatpakBuilder:
|
||||||
|
|
||||||
manifest = MANIFEST.copy()
|
manifest = MANIFEST.copy()
|
||||||
modules = [m for m in modules.values() if m.get('sources')]
|
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['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)
|
||||||
|
|
Loading…
Reference in New Issue