mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 14:56:14 +01:00
fix build with alternative prj and multibuild
building with alternative project (pac='_repository') and multibuild did not work correctly, because the buildflavor was not submitted to the src server. With commit 2390823d649a3b0b6bf3b7bd07713c4426932bed in open-build-service it is now possible to submit the build flavor like this: _repository:<flavor> The obs commit also enables osc buildinfo --alternative-prject -M <flavor> to show the correct buildinfo for the flavor.
This commit is contained in:
parent
6f34f2b8d8
commit
d59141e3fe
@ -646,8 +646,7 @@ def main(apiurl, opts, argv):
|
||||
pac = store_read_package(os.curdir)
|
||||
if opts.multibuild_package:
|
||||
buildargs.append('--buildflavor=%s' % opts.multibuild_package)
|
||||
if pac != '_repository':
|
||||
pac = pac + ":" + opts.multibuild_package
|
||||
pac = pac + ":" + opts.multibuild_package
|
||||
if opts.shell:
|
||||
buildargs.append("--shell")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user