summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorVolker Vogelhuber <v.vogelhuber@digitalendoscopy.de>2014-05-09 10:10:13 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-29 13:18:24 +0100
commit424643f46300838e911ad152736676a329b68e7f (patch)
tree9115b90713ab0bb9b7fda54448cba384ff7757c2 /bitbake
parent84396ed610e0fdbafad9b10c35a8b7f245220648 (diff)
downloadpoky-424643f46300838e911ad152736676a329b68e7f.tar.gz
bitbake: fix cloning of mercurial repository with username and password specified in url
(Bitbake rev: 9a328262e047562a6edf7b2ec7b8a1949e287cbe) (Bitbake rev: 410372783b22cf3ff2d8bbd80a5c3f4a1694e9a4) Signed-off-by: Volker Vogelhuber <v.vogelhuber@digitalendoscopy.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/hg.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py
index 8a31b20ff1..157b1b1d8b 100644
--- a/bitbake/lib/bb/fetch2/hg.py
+++ b/bitbake/lib/bb/fetch2/hg.py
@@ -110,7 +110,10 @@ class Hg(FetchMethod):
110 options.append("-r %s" % ud.revision) 110 options.append("-r %s" % ud.revision)
111 111
112 if command == "fetch": 112 if command == "fetch":
113 cmd = "%s clone %s %s://%s/%s %s" % (basecmd, " ".join(options), proto, hgroot, ud.module, ud.module) 113 if ud.user and ud.pswd:
114 cmd = "%s --config auth.default.prefix=* --config auth.default.username=%s --config auth.default.password=%s --config \"auth.default.schemes=%s\" clone %s %s://%s/%s %s" % (basecmd, ud.user, ud.pswd, " ".join(options), proto, hgroot, ud.module, ud.module)
115 else:
116 cmd = "%s clone %s %s://%s/%s %s" % (basecmd, " ".join(options), proto, hgroot, ud.module, ud.module)
114 elif command == "pull": 117 elif command == "pull":
115 # do not pass options list; limiting pull to rev causes the local 118 # do not pass options list; limiting pull to rev causes the local
116 # repo not to contain it and immediately following "update" command 119 # repo not to contain it and immediately following "update" command