summaryrefslogtreecommitdiffstats
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
parent33b4017b70750bf7b051be91f4ac6955a201a107 (diff)
downloadpoky-610b53fcb9888496826ba96fa68d50c41a444c13.tar.gz
bitbake: Optionally take username/password options from url parameters
-rw-r--r--bitbake-dev/lib/bb/fetch/__init__.py4
-rw-r--r--bitbake/lib/bb/fetch/__init__.py4
2 files changed, 8 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):
315 (self.type, self.host, self.path, self.user, self.pswd, self.parm) = bb.decodeurl(data.expand(url, d)) 315 (self.type, self.host, self.path, self.user, self.pswd, self.parm) = bb.decodeurl(data.expand(url, d))
316 self.date = Fetch.getSRCDate(self, d) 316 self.date = Fetch.getSRCDate(self, d)
317 self.url = url 317 self.url = url
318 if not self.user and "user" in self.parm:
319 self.user = self.parm["user"]
320 if not self.pswd and "pswd" in self.parm:
321 self.pswd = self.parm["pswd"]
318 self.setup = False 322 self.setup = False
319 for m in methods: 323 for m in methods:
320 if m.supports(url, self, d): 324 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):
315 (self.type, self.host, self.path, self.user, self.pswd, self.parm) = bb.decodeurl(data.expand(url, d)) 315 (self.type, self.host, self.path, self.user, self.pswd, self.parm) = bb.decodeurl(data.expand(url, d))
316 self.date = Fetch.getSRCDate(self, d) 316 self.date = Fetch.getSRCDate(self, d)
317 self.url = url 317 self.url = url
318 if not self.user and "user" in self.parm:
319 self.user = self.parm["user"]
320 if not self.pswd and "pswd" in self.parm:
321 self.pswd = self.parm["pswd"]
318 self.setup = False 322 self.setup = False
319 for m in methods: 323 for m in methods:
320 if m.supports(url, self, d): 324 if m.supports(url, self, d):