diff options
author | Frederic Martinsons <frederic.martinsons@gmail.com> | 2023-03-17 09:19:14 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-23 22:41:44 +0000 |
commit | 4920686c13dd66f9bfa4f7dd38d6e955f153eeec (patch) | |
tree | 2a30768a0b5ebe31f06072c6f0440bfe45fbdcc6 /lib/bb/fetch2/crate.py | |
parent | 0f887589c279ce07692b4d8e118954a9d214ca45 (diff) | |
download | bitbake-4920686c13dd66f9bfa4f7dd38d6e955f153eeec.tar.gz |
fetch2: Add checksum capability for crate fetcher
This change brings checksum verification of each crate
in a recipe, e.g
| SRC_URI += " \
| crate://crates.io/aho-corasick/0.7.20 \
| crate://crates.io/atomic-waker/1.1.0 \
| crate://crates.io/cc/1.0.79 \
| "
|
| SRC_URI[aho-corasick.sha256sum] = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac"
| SRC_URI[atomic-waker.sha256sum] = "debc29dde2e69f9e47506b525f639ed42300fc014a3e007832592448fa8e4599"
| SRC_URI[cc.sha256sum] = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f"
That will require to move the checksum initialization
after the possible call to urldata_init method in order
for the crate fetcher to parse the url.
Another way of doing could have been implementing a decodeurl
method that would have been specific for each fetcher class.
Signed-off-by: Frederic Martinsons <frederic.martinsons@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'lib/bb/fetch2/crate.py')
0 files changed, 0 insertions, 0 deletions