summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-08-23 22:46:24 -0700
committerJesse Keating <jkeating@redhat.com>2010-08-23 22:46:24 -0700
commit1717a675943934fd086f0ef1496c1b7329647bde (patch)
treef7ffe714568471d933254256b540b20d6a68116b /src/fedpkg.py
parent3d884578840228323eb7f49827246313953056cf (diff)
downloadfedora-packager-1717a675943934fd086f0ef1496c1b7329647bde.zip
fedora-packager-1717a675943934fd086f0ef1496c1b7329647bde.tar.gz
fedora-packager-1717a675943934fd086f0ef1496c1b7329647bde.tar.xz
Error check the update call. #625679
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 b60c728..1da01cd 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -728,7 +728,11 @@ def update(args):
if hash != orig_hash:
cmd = ['bodhi', '--new', '--release', mymodule.branch, '--file',
'bodhi.template', nvr, '--username', args.user]
- pyfedpkg._run_command(cmd, shell=True)
+ try:
+ pyfedpkg._run_command(cmd, shell=True)
+ except pyfedpkg.FedpkgError, e:
+ log.error('Could not generate update request: %s' % e)
+ sys.exit(1)
else:
log.info('Bodhi update aborted!')