diff mbox series

[meta-lts-mixins,kirkstone/rust,23/33] cargo_common.bbclass: Support git repos with submodules

Message ID 9ce8fea7891c6d82293b10caa6a22ed83903e8a3.1724874972.git.scott.murray@konsulko.com
State New
Headers show
Series Update to Rust 1.78.0 | expand

Commit Message

Scott Murray Aug. 28, 2024, 8:09 p.m. UTC
From: Chris Spencer <spencercw@gmail.com>

This is useful for cargo dependencies specified as git repositories, where
those repositories themselves have submodules that need to be checked out.

Signed-off-by: Chris Spencer <spencercw@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(adapted from oe-core commit f871d9d6094ec0001d826e4b5b3395c1842631bb)
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
---
 classes/cargo_common.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/classes/cargo_common.bbclass b/classes/cargo_common.bbclass
index 92731c2..15f848c 100644
--- a/classes/cargo_common.bbclass
+++ b/classes/cargo_common.bbclass
@@ -142,7 +142,7 @@  python cargo_common_do_patch_paths() {
     fetcher = bb.fetch2.Fetch(src_uri, d)
     for url in fetcher.urls:
         ud = fetcher.ud[url]
-        if ud.type == 'git':
+        if ud.type == 'git' or ud.type == 'gitsm':
             name = ud.parm.get('name')
             destsuffix = ud.parm.get('destsuffix')
             if name is not None and destsuffix is not None: