summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-08-11 23:49:37 -0700
committerJesse Keating <jkeating@redhat.com>2010-08-11 23:49:37 -0700
commitbdb4a5ed149805f3da25d8112360503bc0121ae1 (patch)
tree6b89a2725ed2cf54c97e792988abac5e55795dde /src/fedpkg.py
parent59c4dc59a0c403f1265299d096d490b48ac53203 (diff)
downloadfedora-packager-bdb4a5ed149805f3da25d8112360503bc0121ae1.tar.gz
fedora-packager-bdb4a5ed149805f3da25d8112360503bc0121ae1.tar.xz
fedora-packager-bdb4a5ed149805f3da25d8112360503bc0121ae1.zip
Catch fedpkg errors when trying to build. #620595
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index 51ee2c8..f5cee54 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -320,8 +320,12 @@ def build(args):
print('')
url = '%s/%s' % (uniquepath, os.path.basename(args.srpm))
# Should also try this, again not sure what errors to catch
- task_id = mymodule.build(args.skip_tag, args.scratch, args.background,
- url, chain)
+ try:
+ task_id = mymodule.build(args.skip_tag, args.scratch, args.background,
+ url, chain)
+ except pyfedpkg.FedpkgError, e:
+ log.error('Could not initiate build: %s' % e)
+ sys.exit(1)
# Now that we have the task ID we need to deal with it.
if args.nowait:
# Log out of the koji session