]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
cargo-update-recipe-crates.bbclass: Do not add name= to crate:// URIs
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Thu, 6 Apr 2023 12:57:22 +0000 (14:57 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Apr 2023 13:28:43 +0000 (14:28 +0100)
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.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/cargo-update-recipe-crates.bbclass

index 322b4e4d79d99c33fd23911f403aeda5aa310240..8980137d02cfff3eea0a55b22427d9d6d04996bf 100644 (file)
@@ -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'])