mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 10:57:55 +01:00
subprocess
This commit is contained in:
parent
f462ab7c04
commit
ddf7551727
1 changed files with 2 additions and 4 deletions
|
|
@ -38,10 +38,8 @@ runcmd flatpak remote-add --user ${flatpak_remote_name} ${flatpak_remote_url}
|
||||||
runcmd mkdir -p ${root}/flatpak
|
runcmd mkdir -p ${root}/flatpak
|
||||||
runcmd ostree init --repo=${dest_repo} --mode=archive-z2
|
runcmd ostree init --repo=${dest_repo} --mode=archive-z2
|
||||||
<%
|
<%
|
||||||
f = open("/findme.txt", "a")
|
cmd_result = subprocess.run(['ostree', 'refs', '--repo={0}'.format(flatpak_repo)], stdout=subprocess.PIPE)
|
||||||
f.write("I'm here!")
|
subprocess.run(['bash', '-c', 'echo "Help" >> /findme2.txt'])
|
||||||
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')
|
all_refs = cmd_result.stdout.decode('utf-8').strip().split('\n')
|
||||||
found_refs = [entry[7:] for entry in all_refs if entry.startswith('deploy/')]
|
found_refs = [entry[7:] for entry in all_refs if entry.startswith('deploy/')]
|
||||||
%>
|
%>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue