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:
commit
601e0d08a6
@ -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
|
||||
|
@ -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" '
|
||||
|
Loading…
Reference in New Issue
Block a user