summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Ke <ke.yu@intel.com>2010-12-27 10:48:34 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-10 23:35:48 +0000
commitc0475b7825381492c9ceaf7f5d9f77c4890a8534 (patch)
tree0b5992e9e7f3551d597c227db94f178fc005002d
parentae008059b3ce70bcf5771035bba6f31df8db880a (diff)
downloadbitbake-c0475b7825381492c9ceaf7f5d9f77c4890a8534.tar.gz
bb.fetch2.bzr: add bzr urldata_init
move the bzr specific urldata init from localpath to urldata_init so that it can be called early (From Poky rev: 550c3bd82115b4bdb8235da53cfc18b1dc39ad96) Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/fetch2/bzr.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/bb/fetch2/bzr.py b/lib/bb/fetch2/bzr.py
index 3d23b4d3c..1368f172d 100644
--- a/lib/bb/fetch2/bzr.py
+++ b/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)