summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2011-02-08 16:08:56 -0700
committerJesse Keating <jkeating@redhat.com>2011-02-08 16:08:56 -0700
commita4d3e612a29d6905ca7604d4332f63164a769484 (patch)
treea1edfd482e192c2fc84da4ad20ecad62c9ea744c /src/fedpkg.py
parent99aacb5de55172baebd08bbce5ce4f1dbbc6ff1a (diff)
downloadfedora-packager-a4d3e612a29d6905ca7604d4332f63164a769484.zip
fedora-packager-a4d3e612a29d6905ca7604d4332f63164a769484.tar.gz
fedora-packager-a4d3e612a29d6905ca7604d4332f63164a769484.tar.xz
Handle arches argument for scratch builds (#675285)
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index e3e98a5..b4ff5d2 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -286,6 +286,10 @@ def build(args):
if hasattr(args, 'srpm') and args.srpm and not args.scratch:
log.error('Non-scratch builds cannot be from srpms.')
sys.exit(1)
+ # We may have gotten arches by way of scratch build, so handle them
+ arches = None
+ if hasattr(args, 'arches'):
+ arches = args.arches
# Place holder for if we build with an uploaded srpm or not
url = None
# See if this is a chain or not
@@ -327,7 +331,7 @@ def build(args):
# Should also try this, again not sure what errors to catch
try:
task_id = mymodule.build(args.skip_tag, args.scratch, args.background,
- url, chain)
+ url, chain, arches)
except pyfedpkg.FedpkgError, e:
log.error('Could not initiate build: %s' % e)
sys.exit(1)