summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes-recipe/cargo_common.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes-recipe/cargo_common.bbclass b/meta/classes-recipe/cargo_common.bbclass
index 63b1382908..82ab25b59c 100644
--- a/meta/classes-recipe/cargo_common.bbclass
+++ b/meta/classes-recipe/cargo_common.bbclass
@@ -134,7 +134,10 @@ python cargo_common_do_patch_paths() {
134 name = ud.parm.get('name') 134 name = ud.parm.get('name')
135 destsuffix = ud.parm.get('destsuffix') 135 destsuffix = ud.parm.get('destsuffix')
136 if name is not None and destsuffix is not None: 136 if name is not None and destsuffix is not None:
137 repo = '%s://%s%s' % (ud.proto, ud.host, ud.path) 137 if ud.user:
138 repo = '%s://%s@%s%s' % (ud.proto, ud.user, ud.host, ud.path)
139 else:
140 repo = '%s://%s%s' % (ud.proto, ud.host, ud.path)
138 path = '%s = { path = "%s" }' % (name, os.path.join(workdir, destsuffix)) 141 path = '%s = { path = "%s" }' % (name, os.path.join(workdir, destsuffix))
139 patches.setdefault(repo, []).append(path) 142 patches.setdefault(repo, []).append(path)
140 143