1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-23 13:31:48 +01:00

add --arch and --repo to rebuild for Richi

This commit is contained in:
Ludwig Nussel 2010-11-08 16:20:01 +01:00
parent 1299063228
commit 1b4955dc2a

View File

@ -4492,7 +4492,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
p = Package(".") p = Package(".")
p.run_source_services() 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', @cmdln.option('-f', '--failed', action='store_true',
help='rebuild all failed packages') help='rebuild all failed packages')
@cmdln.alias('rebuildpac') @cmdln.alias('rebuildpac')
@ -4518,6 +4521,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
package = repo = arch = code = None package = repo = arch = code = None
apiurl = self.get_api_url() apiurl = self.get_api_url()
if opts.repo:
repo = opts.repo
if opts.arch:
arch = opts.arch
if len(args) < 1: if len(args) < 1:
if is_package_dir(os.curdir): if is_package_dir(os.curdir):
project = store_read_project(os.curdir) project = store_read_project(os.curdir)