[poky] [PATCH 6/8] bb.fetch2.bzr: add bzr urldata_init
Yu Ke
ke.yu at intel.com
Sun Jan 9 03:50:15 PST 2011
move the bzr specific urldata init from localpath to urldata_init
so that it can be called early
Signed-off-by: Yu Ke <ke.yu at intel.com>
---
bitbake/lib/bb/fetch2/bzr.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/bitbake/lib/bb/fetch2/bzr.py b/bitbake/lib/bb/fetch2/bzr.py
index 3d23b4d..1368f17 100644
--- a/bitbake/lib/bb/fetch2/bzr.py
+++ b/bitbake/lib/bb/fetch2/bzr.py
@@ -34,12 +34,15 @@ class Bzr(Fetch):
def supports(self, url, ud, d):
return ud.type in ['bzr']
- def localpath (self, url, ud, d):
-
+ def urldata_init(self, ud, d):
+ """
+ init bzr specific variable within url data
+ """
# Create paths to bzr checkouts
relpath = self._strip_leading_slashes(ud.path)
ud.pkgdir = os.path.join(data.expand('${BZRDIR}', d), ud.host, relpath)
+ def localpath (self, url, ud, d):
revision = Fetch.srcrev_internal_helper(ud, d)
if revision is True:
ud.revision = self.latest_revision(url, ud, d)
--
1.7.0.4
More information about the poky
mailing list