Skip to content

Commit

Permalink
Fix flatpak builder for source with several archives
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Aug 21, 2024
1 parent cc4af80 commit d87b37f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions kiwixbuild/flatpak_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,16 @@ def configure(self):
module["no-autogen"] = True
module_sources = module.setdefault("sources", [])
if isinstance(source, ReleaseDownload):
src = {
"type": "archive",
"sha256": source.archive.sha256,
"url": source.archive.url,
}
if hasattr(source, "flatpak_dest"):
src["dest"] = source.flatpak_dest
module_sources.append(src)
for archive in source.archives:
src = {
"type": "archive",
"dest-filename": archive.name,
"sha256": archive.sha256,
"url": archive.url,
}
if hasattr(source, "flatpak_dest"):
src["dest"] = source.flatpak_dest
module_sources.append(src)
elif isinstance(source, GitClone):
src = {
"type": "git",
Expand Down

0 comments on commit d87b37f

Please sign in to comment.