diff options
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r-- | scripts/lib/recipetool/create.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index e2941d7753..13aaf148e6 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py | |||
@@ -122,7 +122,11 @@ def create_recipe(args): | |||
122 | tempsrc = tempfile.mkdtemp(prefix='recipetool-') | 122 | tempsrc = tempfile.mkdtemp(prefix='recipetool-') |
123 | srctree = tempsrc | 123 | srctree = tempsrc |
124 | logger.info('Fetching %s...' % srcuri) | 124 | logger.info('Fetching %s...' % srcuri) |
125 | checksums = scriptutils.fetch_uri(tinfoil.config_data, fetchuri, srctree, srcrev) | 125 | try: |
126 | checksums = scriptutils.fetch_uri(tinfoil.config_data, fetchuri, srctree, srcrev) | ||
127 | except bb.fetch2.FetchError: | ||
128 | # Error already printed | ||
129 | sys.exit(1) | ||
126 | dirlist = os.listdir(srctree) | 130 | dirlist = os.listdir(srctree) |
127 | if 'git.indirectionsymlink' in dirlist: | 131 | if 'git.indirectionsymlink' in dirlist: |
128 | dirlist.remove('git.indirectionsymlink') | 132 | dirlist.remove('git.indirectionsymlink') |