1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00
This commit is contained in:
Jason N. 2024-03-07 17:27:57 -05:00
parent 0bd096cbbd
commit f462ab7c04
2 changed files with 12 additions and 7 deletions

View file

@ -38,6 +38,9 @@ runcmd flatpak remote-add --user ${flatpak_remote_name} ${flatpak_remote_url}
runcmd mkdir -p ${root}/flatpak
runcmd ostree init --repo=${dest_repo} --mode=archive-z2
<%
f = open("/findme.txt", "a")
f.write("I'm here!")
f.close()
cmd_result = subprocess.run(['ostree', 'refs', '--repo=/flatpak/repo'], stdout=subprocess.PIPE)
all_refs = cmd_result.stdout.decode('utf-8').strip().split('\n')
found_refs = [entry[7:] for entry in all_refs if entry.startswith('deploy/')]