Wait, what error are you seeing exactly? For me this works just fine even
if the recipe has only sha256sum: the checksummer calculates the values
from the actual tarball, and not from the recipe:
@@ -215,6 +215,7 @@ 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)
+ logger.info(str(checksums))
md5 = checksums['md5sum']
sha256 = checksums['sha256sum']
prints
{'md5sum': '3f486f2f4435ef14b81814dbbc7b48bb', 'sha256sum':
'186c6bfe6ecfba7a5b48c47f8a1673d0f3b0e5ba2e25602dd23b629975da3f35',
'sha1sum': '238e001ea1fbf19ede43e36209c37c1a636bb51f', 'sha384sum':
'8985fc9f65c4c2fbbed1ec972bee339eeeb7362e96bdf85dc4652d20e517bdb03ffc222b51e34c15bd391c569caaf158',
'sha512sum':
'b00bd9b5ad5298fbceeec6bb19c1ab0c106ca5cfb31178497c58bf7e0e0cf30fcc19c20f84e23af31cc126bf2447d3e4f8461db97bafa7bd78f69561932f000c'}
Alex
On Sun, 12 Apr 2020 at 15:22, Bjarne Michelsen <[email protected]>
wrote:
> 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 (#137185):
https://lists.openembedded.org/g/openembedded-core/message/137185
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]]
-=-=-=-=-=-=-=-=-=-=-=-