devtool upgrade currently assumes that a md5 and sha256 sum is available
in the recipe, no matter what is the value of LICENSE.
This fix will just default to an empty checksum, if the parameter is not
found in the recipe.

Signed-off-by: Bjarne Michelsen <[email protected]>
---
 scripts/lib/devtool/upgrade.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index cb6dce378a..7066ddd51e 100644
--- a/scripts/lib/devtool/upgrade.py
+++ b/scripts/lib/devtool/upgrade.py
@@ -215,8 +215,8 @@ def _extract_new_source(newpv, srctree, no_patch, srcrev, 
srcbranch, branch, kee
         if ftmpdir and keep_temp:
             logger.info('Fetch temp directory is %s' % ftmpdir)
 
-        md5 = checksums['md5sum']
-        sha256 = checksums['sha256sum']
+        md5 = checksums.get('md5sum', '')
+        sha256 = checksums.get('sha256sum', '')
 
         tmpsrctree = _get_srctree(tmpdir)
         srctree = os.path.abspath(srctree)
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#137184): 
https://lists.openembedded.org/g/openembedded-core/message/137184
Mute This Topic: https://lists.openembedded.org/mt/72965075/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to