summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
authorKarsten Hopp <karsten@redhat.com>2010-08-05 15:40:53 +0200
committerDennis Gilmore <dennis@ausil.us>2010-08-05 10:43:49 -0500
commite6d91a997d78d005844baffd524fc48f420ad586 (patch)
treee28e5fe8ed5bf261c89ab9bae8be6a1aa729000c /src/fedpkg.py
parentf63baa10fe44bea53783afbfc28b58e1e79e55d3 (diff)
downloadfedora-packager-e6d91a997d78d005844baffd524fc48f420ad586.zip
fedora-packager-e6d91a997d78d005844baffd524fc48f420ad586.tar.gz
fedora-packager-e6d91a997d78d005844baffd524fc48f420ad586.tar.xz
- add option to overwrite default build target
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index dadaa23..54b2d94 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -293,6 +293,8 @@ def build(args):
log.error('Could not use module: %s' % e)
sys.exit(1)
kojiconfig = _get_secondary_config(mymodule)
+ if args.target:
+ mymodule.target = args.target
try:
mymodule.init_koji(args.user, kojiconfig)
except pyfedpkg.FedpkgError, e:
@@ -667,6 +669,9 @@ if __name__ == '__main__':
parser_build_common.add_argument('--nowait', action = 'store_true',
default = False,
help = "Don't wait on build")
+ parser_build_common.add_argument('--target',
+ default = None,
+ help = 'Define koji target to build into')
parser_build_common.add_argument('--background', action = 'store_true',
default = False,
help = 'Run the build at a lower priority')