[poky] [PATCH 2/8] bb.fetch2: add urldata_init call for Fetch class
Yu Ke
ke.yu at intel.com
Sun Jan 9 03:49:49 PST 2011
FetchData has some fetch method specific data, and only fetch method knows how
to initialize it. originally it is mostly initialized in Fetch.localpath().
But now there is requirement to call Fetch.latest_revision() before
Fetch.localpath(), thus require another earlier place for initialization. so
urldata_init is introduced for this purpose. it will be called in FetchData:__init__
and make all the Fetch functions useable after that.
Signed-off-by: Yu Ke <ke.yu at intel.com>
---
bitbake/lib/bb/fetch2/__init__.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 3a209d3..52c8d97 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -543,6 +543,8 @@ class FetchData(object):
for m in methods:
if m.supports(url, self, d):
self.method = m
+ if hasattr(m,"urldata_init"):
+ m.urldata_init(self, d)
return
raise NoMethodError("Missing implementation for url %s" % url)
--
1.7.0.4
More information about the poky
mailing list