summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorVolker Vogelhuber <v.vogelhuber@digitalendoscopy.de>2014-04-29 17:34:03 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-04-29 17:33:57 +0100
commit0f717ea4b59ce649ded811c1415d6f38799b246f (patch)
tree02a0876819a66b64ad8ceb7b3ea95381673bf62b /bitbake
parent6ad25fc2a63085574781a57328b825f0bce16ee1 (diff)
downloadast2050-yocto-poky-0f717ea4b59ce649ded811c1415d6f38799b246f.zip
ast2050-yocto-poky-0f717ea4b59ce649ded811c1415d6f38799b246f.tar.gz
bitbake: HG Fetch with username and password in url
Following up a previous patch for mercurial fetcher, I just fixed a problem when calling update on a repository with subrepositories enabled. Attached a patch that fixes this problem >From caae519a2bd64bf7c729bb26aff344827def47fb Mon Sep 17 00:00:00 2001 From: Volker Vogelhuber <v.vogelhuber@digitalendoscopy.de> Date: Tue, 29 Apr 2014 15:29:47 +0200 Subject: [PATCH] bitbake: - fixed authentication issues in case of using sub repositories (Bitbake rev: dfa041c940caad12da50126a559afc8de089eeda) 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.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py
index 6927f61..8a31b20 100644
--- a/bitbake/lib/bb/fetch2/hg.py
+++ b/bitbake/lib/bb/fetch2/hg.py
@@ -120,7 +120,7 @@ class Hg(FetchMethod):
else:
cmd = "%s pull" % (basecmd)
elif command == "update":
- cmd = "%s update -C %s" % (basecmd, " ".join(options))
+ cmd = "%s update --config auth.default.prefix=* --config auth.default.username=%s --config auth.default.password=%s --config \"auth.default.schemes=%s\" -C %s" % (basecmd, ud.user, ud.pswd, proto, " ".join(options))
else:
raise FetchError("Invalid hg command %s" % command, ud.url)
OpenPOWER on IntegriCloud