summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2011-01-22 07:17:58 -0800
committerJesse Keating <jkeating@redhat.com>2011-01-22 07:17:58 -0800
commit12aa298e49b86cad7d952ef7503a081ce13afd8d (patch)
tree83fd355d0ed67f93cb775714281cba3046a4ebed /src
parent8fc9a6a10d6ac78abfdff3dc0c85da1a8c233390 (diff)
downloadfedora-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-xsrc/fedpkg.py6
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: