1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-28 02:36:15 +01:00

fix local multibuild flavor support when package does not exist ('_repository' case)

This commit is contained in:
Adrian Schröter 2018-08-22 11:20:40 +02:00
parent ae2656b415
commit 153032bc11

View File

@ -626,7 +626,8 @@ def main(apiurl, opts, argv):
pac = store_read_package(os.curdir)
if opts.multibuild_package:
buildargs.append('--buildflavor=%s' % opts.multibuild_package)
pac = pac + ":" + opts.multibuild_package
if pac != '_repository':
pac = pac + ":" + opts.multibuild_package
if opts.shell:
buildargs.append("--shell")