mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-25 11:42:12 +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:
commit
5611c55bde
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user