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:
parent
5b28700873
commit
f2f046c978
1 changed files with 2 additions and 1 deletions
|
|
@ -39,7 +39,8 @@ 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)], stdout=subprocess.PIPE)
|
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:
|
%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})"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue