From 2440bed28566633aadf5a76a669af796c72499d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Thu, 24 Apr 2008 09:00:23 +0000 Subject: [PATCH] - added --job option to the do_build() command. (this option will be passed to build script) --- osc/build.py | 2 ++ osc/commandline.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/osc/build.py b/osc/build.py index 09804bbc..4254cf33 100644 --- a/osc/build.py +++ b/osc/build.py @@ -230,6 +230,8 @@ def main(opts, argv): buildargs.append('--noinit') if not opts.no_changelog: buildargs.append('--changelog') + if opts.jobs: + buildargs.append('--jobs %s' % opts.jobs) buildargs = ' '.join(buildargs) prj = store_read_project(os.curdir) diff --git a/osc/commandline.py b/osc/commandline.py index df6b3799..847b3362 100755 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1474,6 +1474,8 @@ class Osc(cmdln.Cmdln): help='Save built packages into this directory') @cmdln.option('-x', '--extra-pkgs', metavar='PAC', action='append', help='Add this package when installing the build-root') + @cmdln.option('-j', '--jobs', metavar='N', + help='Compile with N jobs') @cmdln.option('--userootforbuild', action='store_true', help='Run build as root. The default is to build as ' 'unprivileged user. Note that a line "# norootforbuild" '