summaryrefslogtreecommitdiffstats
path: root/scripts/lib/devtool/upgrade.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/devtool/upgrade.py')
-rw-r--r--scripts/lib/devtool/upgrade.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index 05fb9e5ed0..f077f37726 100644
--- a/scripts/lib/devtool/upgrade.py
+++ b/scripts/lib/devtool/upgrade.py
@@ -207,10 +207,16 @@ def _extract_new_source(newpv, srctree, no_patch, srcrev, branch, keep_temp, tin
207 207
208 tmpdir = tempfile.mkdtemp(prefix='devtool') 208 tmpdir = tempfile.mkdtemp(prefix='devtool')
209 try: 209 try:
210 md5, sha256 = scriptutils.fetch_uri(tinfoil.config_data, uri, tmpdir, rev) 210 checksums, ftmpdir = scriptutils.fetch_url(tinfoil, uri, rev, tmpdir, logger, preserve_tmp=keep_temp)
211 except bb.fetch2.FetchError as e: 211 except scriptutils.FetchUrlFailure as e:
212 raise DevtoolError(e) 212 raise DevtoolError(e)
213 213
214 if ftmpdir and keep_temp:
215 logger.info('Fetch temp directory is %s' % ftmpdir)
216
217 md5 = checksums['md5sum']
218 sha256 = checksums['sha256sum']
219
214 tmpsrctree = _get_srctree(tmpdir) 220 tmpsrctree = _get_srctree(tmpdir)
215 srctree = os.path.abspath(srctree) 221 srctree = os.path.abspath(srctree)
216 222