mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
b92918eb0e
commit
46dafcedf9
@@ -43,7 +43,7 @@ def get_crates(f):
|
||||
cksum_list = ''
|
||||
for c in crates_candidates:
|
||||
rename = "%s-%s" % (c['name'], c['version'])
|
||||
c_list += '\n crate://crates.io/%s/%s;name=%s \\\' % (c['name'], c['version'], rename)
|
||||
c_list += '\n crate://crates.io/%s/%s \\\' % (c['name'], c['version'])
|
||||
if 'checksum' in c:
|
||||
cksum_list += '\nSRC_URI[%s.sha256sum] = "%s"' % (rename, c['checksum'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user