summaryrefslogtreecommitdiff
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2008-11-05 10:31:40 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2008-11-05 10:31:40 +0000
commit610b53fcb9888496826ba96fa68d50c41a444c13 (patch)
treec5f7c7f15a0e48f712638a56aced6e8675f10704 /bitbake
parent33b4017b70750bf7b051be91f4ac6955a201a107 (diff)
downloadopenembedded-core-610b53fcb9888496826ba96fa68d50c41a444c13.tar.gz
openembedded-core-610b53fcb9888496826ba96fa68d50c41a444c13.tar.bz2
openembedded-core-610b53fcb9888496826ba96fa68d50c41a444c13.zip
bitbake: Optionally take username/password options from url parameters
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index e6b2851b91..9ca5556089 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -315,6 +315,10 @@ class FetchData(object):
(self.type, self.host, self.path, self.user, self.pswd, self.parm) = bb.decodeurl(data.expand(url, d))
self.date = Fetch.getSRCDate(self, d)
self.url = url
+ if not self.user and "user" in self.parm:
+ self.user = self.parm["user"]
+ if not self.pswd and "pswd" in self.parm:
+ self.pswd = self.parm["pswd"]
self.setup = False
for m in methods:
if m.supports(url, self, d):