mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-23 05:26:16 +01:00
add --arch and --repo to rebuild for Richi
This commit is contained in:
parent
1299063228
commit
1b4955dc2a
@ -4492,7 +4492,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
p = Package(".")
|
||||
p.run_source_services()
|
||||
|
||||
|
||||
@cmdln.option('-a', '--arch', metavar='ARCH',
|
||||
help='trigger rebuilds for a specific architecture')
|
||||
@cmdln.option('-r', '--repo', metavar='REPO',
|
||||
help='trigger rebuilds for a specific repository')
|
||||
@cmdln.option('-f', '--failed', action='store_true',
|
||||
help='rebuild all failed packages')
|
||||
@cmdln.alias('rebuildpac')
|
||||
@ -4518,6 +4521,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
package = repo = arch = code = None
|
||||
apiurl = self.get_api_url()
|
||||
|
||||
if opts.repo:
|
||||
repo = opts.repo
|
||||
|
||||
if opts.arch:
|
||||
arch = opts.arch
|
||||
|
||||
if len(args) < 1:
|
||||
if is_package_dir(os.curdir):
|
||||
project = store_read_project(os.curdir)
|
||||
|
Loading…
Reference in New Issue
Block a user