summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/fedpkg.py')
-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: