From 143af4447955187fd45aea483bcb69c411ec0472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 6 Feb 2013 17:12:52 +0100 Subject: [PATCH] - support --target argument for "osc build" --- osc/build.py | 2 ++ osc/commandline.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/osc/build.py b/osc/build.py index ec816557..6208e81b 100644 --- a/osc/build.py +++ b/osc/build.py @@ -414,6 +414,8 @@ def main(apiurl, opts, argv): buildargs.append('--changelog') if opts.root: build_root = opts.root + if opts.target: + buildargs.append('--target=%s' % opts.target) if opts.jobs: buildargs.append('--jobs=%s' % opts.jobs) elif config['build-jobs'] > 1: diff --git a/osc/commandline.py b/osc/commandline.py index 50ecb497..2977593c 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -5245,6 +5245,8 @@ Please submit there instead, or use --nodevelproject to force direct submission. help='use hard links instead of a deep copied source') @cmdln.option('--vm-type', metavar='TYPE', help='use VM type TYPE (e.g. kvm)') + @cmdln.option('--target', metavar='TARGET', + help='define target plattform') @cmdln.option('--alternative-project', metavar='PROJECT', help='specify the build target project') @cmdln.option('-d', '--debuginfo', action='store_true',