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

Merge branch 'fix_buildinfo_with_alternative_project' of https://github.com/lethliel/osc

Make "osc buildinfo --alternative-project <project> ..." consistent with
"osc build --alternative-project <project> ...". This change breaks some
invocations where a build_descr is omitted (but in this case, simply
use "osc buildinfo <project> <package> <repo> <arch>).
This commit is contained in:
Marcus Huewe 2019-10-21 16:16:55 +02:00
commit 5611c55bde

View File

@ -5823,6 +5823,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
raise oscerr.WrongArgs('Incorrect number of arguments (Note: \'.\' is no package wc)') raise oscerr.WrongArgs('Incorrect number of arguments (Note: \'.\' is no package wc)')
if opts.alternative_project: if opts.alternative_project:
project = opts.alternative_project project = opts.alternative_project
package = '_repository'
else: else:
project = store_read_project('.') project = store_read_project('.')
package = store_read_package('.') package = store_read_package('.')