From: Richard Purdie Date: Wed, 5 Nov 2008 10:31:40 +0000 (+0000) Subject: bitbake: Optionally take username/password options from url parameters X-Git-Tag: 2011-1~7845 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=610b53fcb9888496826ba96fa68d50c41a444c13;p=openembedded-core.git bitbake: Optionally take username/password options from url parameters --- 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): 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):