Skip to contentSkip to conversation

cargo-update-recipe-crates.bbclass: Do not add name= to crate:// URIs

PATCH New Peter Kjellerstedt 1 participant 1 message Apr 6, 2023

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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 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.

---

PATCHv2: Correct a typo in the commit message

 meta/classes-recipe/cargo-update-recipe-crates.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes-recipe/cargo-update-recipe-crates.bbclass +1 -1
index 322b4e4d79..8980137d02 100644
@@ -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'])