From 1b4955dc2abb44d644e2429ac4770108bf366c85 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Mon, 8 Nov 2010 16:20:01 +0100 Subject: [PATCH] add --arch and --repo to rebuild for Richi --- osc/commandline.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 6f6a6d84..21ab3f85 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -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)