1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00

python is special

This commit is contained in:
Jason N. 2024-03-05 17:19:38 -05:00
parent f89846e64f
commit 10f10364d0

View file

@ -39,7 +39,7 @@ runcmd mkdir -p ${root}/flatpak
runcmd ostree init --repo=${dest_repo} --mode=archive-z2 runcmd ostree init --repo=${dest_repo} --mode=archive-z2
<% <%
cmd_result = subprocess.run(['ostree', 'refs', '--repo={0}'.format(${flatpak_repo})]) cmd_result = subprocess.run(['ostree', 'refs', '--repo={0}'.format(${flatpak_repo})])
found_refs = cmd_result.stdout.decode('utf-8').trim().split('\n') found_refs = cmd_result.stdout.decode('utf-8').strip().split('\n')
%> %>
%for ref in found_refs: %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})" runcmd sh -c "ostree --repo=${dest_repo} pull-local ${flatpak_repo} $(ostree --repo=${flatpak_repo} rev-parse ${flatpak_remote_name}/${ref})"