summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-07-14 11:39:28 -0700
committerJesse Keating <jkeating@redhat.com>2010-07-14 11:39:28 -0700
commit1e4632d397fe3c186604c067f8f85c328bd44ddd (patch)
treeb48b1ae705f9655e9129a94c9aeb214b989fedf3 /src/fedpkg.py
parent55a04fd2883fadb427525fda32e4e89481cf6314 (diff)
downloadfedora-packager-1e4632d397fe3c186604c067f8f85c328bd44ddd.zip
fedora-packager-1e4632d397fe3c186604c067f8f85c328bd44ddd.tar.gz
fedora-packager-1e4632d397fe3c186604c067f8f85c328bd44ddd.tar.xz
Don't traceback if clone fails (#13)
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index a81665c..4c5a465 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -402,10 +402,14 @@ def clone(args):
except:
log.debug('Could not read Fedora cert, using login name')
args.user = os.getlogin()
- if args.branches:
- pyfedpkg.clone_with_dirs(args.module[0], args.user)
- else:
- pyfedpkg.clone(args.module[0], args.user, args.path, args.branch)
+ try:
+ if args.branches:
+ pyfedpkg.clone_with_dirs(args.module[0], args.user)
+ else:
+ pyfedpkg.clone(args.module[0], args.user, args.path, args.branch)
+ except pyfedpkg.FedpkgError, e:
+ log.error('Could not clone: %s' % e)
+ sys.exit(1)
def commit(args):
try: