1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 17:26:15 +02: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,9 +5823,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
raise oscerr.WrongArgs('Incorrect number of arguments (Note: \'.\' is no package wc)')
if opts.alternative_project:
project = opts.alternative_project
package = '_repository'
else:
project = store_read_project('.')
package = store_read_package('.')
package = store_read_package('.')
repository, arch, build_descr = self.parse_repoarchdescr(args, alternative_project=opts.alternative_project, ignore_descr=True, multibuild_package=opts.multibuild_package)
elif len(args) == 4 or len(args) == 5:
project = args[0]