Skip to content

Commit

Permalink
Merge pull request coreos#84 from jlebon/pr/versionary-drop-repo
Browse files Browse the repository at this point in the history
versionary: stop creating OSTree repo for --print-only
  • Loading branch information
jlebon authored Mar 12, 2020
2 parents f94321d + b5199b1 commit 66575b4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions scripts/versionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,9 @@ def get_next_iteration(x, y, z):


def get_flattened_manifest():
# This is silly; rpm-ostree needs a repo even if it doesn't need it for
# --print-only. Create it (or do nothing; it's idempotent) in case this is
# a fresh cosa workdir.
subprocess.check_call(['ostree', 'init', '--repo=tmp/repo',
'--mode=archive'])
return yaml.safe_load(
subprocess.check_output(['rpm-ostree', 'compose', 'tree', '--repo',
'tmp/repo', '--print-only',
'src/config/manifest.yaml']))
subprocess.check_output(['rpm-ostree', 'compose', 'tree',
'--print-only', 'src/config/manifest.yaml']))


def parse_version(version):
Expand Down

0 comments on commit 66575b4

Please sign in to comment.