From 3dd4c497e329db3aa66c20420d6a9507a5427b7a Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Jul 11 2019 17:22:36 +0000 Subject: container-build: add --build-release argument Add support for a new "--build-release" argument to the container-build sub-command. This allows users to specify a specific "Release" value to OSBS for the build's Name-Version-Release. Signed-off-by: Ken Dreyer --- diff --git a/pyrpkg/cli.py b/pyrpkg/cli.py index 97dec0f..cedca3d 100644 --- a/pyrpkg/cli.py +++ b/pyrpkg/cli.py @@ -1510,6 +1510,11 @@ see API KEY section of copr-cli(1) man page. help="Don't wait on build") parser.add_argument( + '--build-release', + default=None, + help="Specify a release value for this build's NVR") + + parser.add_argument( '--scratch', help='Scratch build', action="store_true") @@ -1946,6 +1951,7 @@ see API KEY section of copr-cli(1) man page. opts = {"scratch": self.args.scratch, "quiet": self.args.q, + "release": self.args.build_release, "git_branch": self.cmd.branch_merge, "arches": self.args.arches}