openSUSE / osc

The Command Line Interface to work with an Open Build Service

Home Page:http://openbuildservice.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

osc build -M something does not work with --alternative-project

bmwiedemann opened this issue · comments

Steps To Reproduce:

osc co openSUSE:Factory/glib2-branding ; cd $_
osc -v -d build --noservice --alternative-project openSUSE:Factory --multibuild-package=openSUSE standard glib2-branding.spec

actual result:

makeurl: https://api.opensuse.org ['build', 'openSUSE:Factory', 'standard', 'x86_64', '_repository:openSUSE', '_buildinfo'] []
...
The package '_repository:openSUSE' does not exist - please rerun with '--local-package'

expected result:
should behave the same as without alternative-project and request

makeurl: https://api.opensuse.org ['build', 'openSUSE:Factory', 'standard', 'x86_64', 'glib2-branding:openSUSE', '_buildinfo'] []

The _repository:openSUSE is coming form https://github.com/openSUSE/osc/blob/master/osc/build.py#L614
with multibuild portion appended some lines later.

actually, I would like to be able to use --local-package and --alternative-project also with other project names, but that is still broken for multibuild packages - does that need changes on the server side?