diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2023-04-06 14:57:22 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-04-06 14:28:59 +0100 |
commit | 46dafcedf93d62abfa38f74b765cc2b98757467f (patch) | |
tree | b35d32c455832d0321f1259ac451e5eea35f2a44 /meta/classes-recipe | |
parent | b92918eb0eb25e737e2ad044323a6607c37dab28 (diff) | |
download | poky-46dafcedf93d62abfa38f74b765cc2b98757467f.tar.gz |
cargo-update-recipe-crates.bbclass: Do not add name= to crate:// URIs
With the recent change to the crate fetcher, which automatically sets
the name to for each crate to be versioned, there is no longer a need to
explicitly set the name= parameter for each URI. This also results in
generated files that are compatible with the crate fetcher in Kirkstone
and Langdale.
(From OE-Core rev: eb272afcd9a12ce2b2f43436b3f84f52cb6cdfb7)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe')
-rw-r--r-- | meta/classes-recipe/cargo-update-recipe-crates.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/cargo-update-recipe-crates.bbclass b/meta/classes-recipe/cargo-update-recipe-crates.bbclass index 322b4e4d79..8980137d02 100644 --- a/meta/classes-recipe/cargo-update-recipe-crates.bbclass +++ b/meta/classes-recipe/cargo-update-recipe-crates.bbclass | |||
@@ -43,7 +43,7 @@ def get_crates(f): | |||
43 | cksum_list = '' | 43 | cksum_list = '' |
44 | for c in crates_candidates: | 44 | for c in crates_candidates: |
45 | rename = "%s-%s" % (c['name'], c['version']) | 45 | rename = "%s-%s" % (c['name'], c['version']) |
46 | c_list += '\n crate://crates.io/%s/%s;name=%s \\\' % (c['name'], c['version'], rename) | 46 | c_list += '\n crate://crates.io/%s/%s \\\' % (c['name'], c['version']) |
47 | if 'checksum' in c: | 47 | if 'checksum' in c: |
48 | cksum_list += '\nSRC_URI[%s.sha256sum] = "%s"' % (rename, c['checksum']) | 48 | cksum_list += '\nSRC_URI[%s.sha256sum] = "%s"' % (rename, c['checksum']) |
49 | 49 | ||