ostree: Add force_new_commit option - test added

Relates: https://pagure.io/pungi/issue/811

Signed-off-by: Ondrej Nosek <onosek@redhat.com>
This commit is contained in:
Ondrej Nosek 2018-01-11 15:08:07 +01:00
parent 161b7f974b
commit 51cd359057
4 changed files with 31 additions and 3 deletions

View file

@ -126,6 +126,9 @@ class OSTreeThread(WorkerThread):
if ostree_ref:
cmd.append('--ostree-ref=%s' % ostree_ref)
if config.get('force_new_commit', False):
cmd.append('--force-new-commit')
runroot_channel = compose.conf.get("runroot_channel")
runroot_tag = compose.conf["runroot_tag"]