Add --respin-of argument.

It is used to defined the relation between original compose
and respun compose with a hotfix in CTS.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
This commit is contained in:
Jan Kaluza 2020-11-19 10:04:51 +01:00 committed by lsedlar
parent e3a500ca50
commit c27e21ccf8
3 changed files with 17 additions and 2 deletions

View file

@ -173,6 +173,12 @@ def main():
help="List of compose IDs which should be marked as parents of this "
"compose in Compose Tracking Service",
)
parser.add_argument(
"--respin-of",
default=None,
help="Compose ID of compose which this compose respins to store it in "
"Compose Tracking Service",
)
parser.add_argument(
"--print-output-dir",
action="store_true",
@ -301,6 +307,7 @@ def main():
compose_type=compose_type,
compose_label=opts.label,
parent_compose_ids=opts.parent_compose_id,
respin_of=opts.respin_of,
)
Compose.write_compose_info(compose_dir, ci)