1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 22:56:15 +01:00

Merge pull request #1304 from dmach/buildtool-opt

Add '--buildtool-opt' option passing options to underlying rpmbuild to the 'build' command
This commit is contained in:
Daniel Mach 2023-04-27 11:28:32 +02:00 committed by GitHub
commit 601e0d08a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -1057,6 +1057,9 @@ def main(apiurl, opts, argv):
if opts.build_opt:
buildargs += opts.build_opt
if opts.buildtool_opt:
buildargs += [f"--buildtool-opt={opt}" for opt in opts.buildtool_opt]
# real arch of this machine
# vs.
# arch we are supposed to build for

View File

@ -7012,6 +7012,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
help='define macro X with value Y')
@cmdln.option('--build-opt', metavar='OPT', action='append',
help='pass option OPT to the build command')
@cmdln.option('--buildtool-opt', metavar='OPT', action='append',
help='pass option OPT to the build tool command (rpmbuild)')
@cmdln.option('--userootforbuild', '--login-as-root', action='store_true',
help='Run build or shell as root. The default is to build as '
'unprivileged user. Note that a line "# norootforbuild" '