diff options
author | Volker Vogelhuber <v.vogelhuber@digitalendoscopy.de> | 2014-05-09 10:10:13 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-29 13:17:59 +0100 |
commit | 410372783b22cf3ff2d8bbd80a5c3f4a1694e9a4 (patch) | |
tree | c505ff719b9bc77937dbb61e2e79e94593fc148c | |
parent | ad2f373fa29fcaf03934d96f7d69440254a259f0 (diff) | |
download | bitbake-410372783b22cf3ff2d8bbd80a5c3f4a1694e9a4.tar.gz |
fix cloning of mercurial repository with username and password specified in url
(Bitbake rev: 9a328262e047562a6edf7b2ec7b8a1949e287cbe)
Signed-off-by: Volker Vogelhuber <v.vogelhuber@digitalendoscopy.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/fetch2/hg.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bb/fetch2/hg.py b/lib/bb/fetch2/hg.py index 8a31b20ff..157b1b1d8 100644 --- a/lib/bb/fetch2/hg.py +++ b/lib/bb/fetch2/hg.py @@ -110,7 +110,10 @@ class Hg(FetchMethod): options.append("-r %s" % ud.revision) if command == "fetch": - cmd = "%s clone %s %s://%s/%s %s" % (basecmd, " ".join(options), proto, hgroot, ud.module, ud.module) + if ud.user and ud.pswd: + 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) + else: + cmd = "%s clone %s %s://%s/%s %s" % (basecmd, " ".join(options), proto, hgroot, ud.module, ud.module) elif command == "pull": # do not pass options list; limiting pull to rev causes the local # repo not to contain it and immediately following "update" command |