Allow extracting koji event from another compose
When multiple composes are chained, they should reuse the same event. However it is tricky as the value would have to be passed by hand. This patch makes it possible to read the value from another compose (the first one in the chain). JIRA: COMPOSE-2571 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
ec96757707
commit
cbcebe90e1
3 changed files with 43 additions and 4 deletions
|
|
@ -23,7 +23,7 @@ if here != '/usr/bin':
|
|||
sys.path[0] = os.path.dirname(here)
|
||||
|
||||
from pungi.phases import PHASES_NAMES
|
||||
from pungi import get_full_version
|
||||
from pungi import get_full_version, util
|
||||
|
||||
|
||||
# force C locales
|
||||
|
|
@ -130,8 +130,9 @@ def main():
|
|||
parser.add_argument(
|
||||
"--koji-event",
|
||||
metavar="ID",
|
||||
type=int,
|
||||
help="specify a koji event for populating package set",
|
||||
type=util.parse_koji_event,
|
||||
help="specify a koji event for populating package set, either as event ID "
|
||||
"or a path to a compose from which to reuse the event",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--version",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue