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/lib/bb | |
parent | 33b4017b70750bf7b051be91f4ac6955a201a107 (diff) | |
download | openembedded-core-610b53fcb9888496826ba96fa68d50c41a444c13.tar.gz openembedded-core-610b53fcb9888496826ba96fa68d50c41a444c13.tar.bz2 openembedded-core-610b53fcb9888496826ba96fa68d50c41a444c13.tar.xz openembedded-core-610b53fcb9888496826ba96fa68d50c41a444c13.zip |
bitbake: Optionally take username/password options from url parameters
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index e6b2851b9..9ca555608 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): |