diff options
author | Volker Vogelhuber <v.vogelhuber@digitalendoscopy.de> | 2014-04-29 17:34:03 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-29 13:18:24 +0100 |
commit | b28a902253093b645d2e1526b07b723347abcf7a (patch) | |
tree | 40ec522e14559b4b911f7daf9d48277174e8a8d1 | |
parent | b94ebc582fa0ed0b4e695069b736c18a318cabef (diff) | |
download | poky-b28a902253093b645d2e1526b07b723347abcf7a.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: bitbake: - fixed authentication issues in case of using sub
repositories
(Bitbake rev: dfa041c940caad12da50126a559afc8de089eeda)
(Bitbake rev: 8b9e8a19dbee56f1012966b77d7f7bd595af55ff)
Signed-off-by: Volker Vogelhuber <v.vogelhuber@digitalendoscopy.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/fetch2/hg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py index 6927f6111e..8a31b20ff1 100644 --- a/bitbake/lib/bb/fetch2/hg.py +++ b/bitbake/lib/bb/fetch2/hg.py | |||
@@ -120,7 +120,7 @@ class Hg(FetchMethod): | |||
120 | else: | 120 | else: |
121 | cmd = "%s pull" % (basecmd) | 121 | cmd = "%s pull" % (basecmd) |
122 | elif command == "update": | 122 | elif command == "update": |
123 | cmd = "%s update -C %s" % (basecmd, " ".join(options)) | 123 | 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)) |
124 | else: | 124 | else: |
125 | raise FetchError("Invalid hg command %s" % command, ud.url) | 125 | raise FetchError("Invalid hg command %s" % command, ud.url) |
126 | 126 | ||