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

only use refs that start with deploy/

This commit is contained in:
Jason N. 2024-03-06 08:39:32 -05:00
parent 5b28700873
commit f2f046c978

View file

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