diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2008-11-05 10:31:40 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2008-11-05 10:31:40 +0000 |
commit | 610b53fcb9888496826ba96fa68d50c41a444c13 (patch) | |
tree | c5f7c7f15a0e48f712638a56aced6e8675f10704 /bitbake-dev | |
parent | 33b4017b70750bf7b051be91f4ac6955a201a107 (diff) | |
download | openembedded-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-dev')
-rw-r--r-- | bitbake-dev/lib/bb/fetch/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake-dev/lib/bb/fetch/__init__.py b/bitbake-dev/lib/bb/fetch/__init__.py index e6b2851b91..9ca5556089 100644 --- a/bitbake-dev/lib/bb/fetch/__init__.py +++ b/bitbake-dev/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): |