diff options
author | Jesse Keating <jkeating@redhat.com> | 2011-01-22 07:17:58 -0800 |
---|---|---|
committer | Jesse Keating <jkeating@redhat.com> | 2011-01-22 07:17:58 -0800 |
commit | 12aa298e49b86cad7d952ef7503a081ce13afd8d (patch) | |
tree | 83fd355d0ed67f93cb775714281cba3046a4ebed /src | |
parent | 8fc9a6a10d6ac78abfdff3dc0c85da1a8c233390 (diff) | |
download | fedora-packager-12aa298e49b86cad7d952ef7503a081ce13afd8d.tar.gz fedora-packager-12aa298e49b86cad7d952ef7503a081ce13afd8d.tar.xz fedora-packager-12aa298e49b86cad7d952ef7503a081ce13afd8d.zip |
Make sure we have sources for mockbuild (#665555) (jwboyer)
Diffstat (limited to 'src')
-rwxr-xr-x | src/fedpkg.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py index 89e3ce5..fdda1b6 100755 --- a/src/fedpkg.py +++ b/src/fedpkg.py @@ -576,6 +576,12 @@ def local(args): sys.exit(1) def mockbuild(args): + try: + pyfedpkg.sources(args.path) + except pyfedpkg.FedpkgError, e: + log.error('Could not download sources: %s' % e) + sys.exit(1) + # Pick up any mockargs from the env mockargs = [] try: |