diff --git a/lorax_templates/download_flatpaks.tmpl.in b/lorax_templates/download_flatpaks.tmpl.in index 3493014..8445f69 100644 --- a/lorax_templates/download_flatpaks.tmpl.in +++ b/lorax_templates/download_flatpaks.tmpl.in @@ -39,7 +39,8 @@ runcmd mkdir -p ${root}/flatpak runcmd ostree init --repo=${dest_repo} --mode=archive-z2 <% cmd_result = subprocess.run(['ostree', 'refs', '--repo={0}'.format(flatpak_repo)], stdout=subprocess.PIPE) -found_refs = cmd_result.stdout.decode('utf-8').strip().split('\n') +all_refs = cmd_result.stdout.decode('utf-8').strip().split('\n') +found_refs = [entry[7:] for entry in all_refs if entry.startswith('deploy/')] %> %for ref in found_refs: runcmd sh -c "ostree --repo=${dest_repo} pull-local ${flatpak_repo} $(ostree --repo=${flatpak_repo} rev-parse ${flatpak_remote_name}/${ref})"