diff options
author | Yu Ke <ke.yu@intel.com> | 2010-12-27 10:48:34 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-10 20:22:12 +0000 |
commit | 550c3bd82115b4bdb8235da53cfc18b1dc39ad96 (patch) | |
tree | 21a988976e55f037297b033eb02f1e93c3d7343d /bitbake/lib/bb/fetch2/bzr.py | |
parent | f684ff18a2b9565823a41750af369dee392f6142 (diff) | |
download | poky-550c3bd82115b4bdb8235da53cfc18b1dc39ad96.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
Signed-off-by: Yu Ke <ke.yu@intel.com>
Diffstat (limited to 'bitbake/lib/bb/fetch2/bzr.py')
-rw-r--r-- | 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 3d23b4d3cf..1368f172d3 100644 --- a/bitbake/lib/bb/fetch2/bzr.py +++ b/bitbake/lib/bb/fetch2/bzr.py | |||
@@ -34,12 +34,15 @@ class Bzr(Fetch): | |||
34 | def supports(self, url, ud, d): | 34 | def supports(self, url, ud, d): |
35 | return ud.type in ['bzr'] | 35 | return ud.type in ['bzr'] |
36 | 36 | ||
37 | def localpath (self, url, ud, d): | 37 | def urldata_init(self, ud, d): |
38 | 38 | """ | |
39 | init bzr specific variable within url data | ||
40 | """ | ||
39 | # Create paths to bzr checkouts | 41 | # Create paths to bzr checkouts |
40 | relpath = self._strip_leading_slashes(ud.path) | 42 | relpath = self._strip_leading_slashes(ud.path) |
41 | ud.pkgdir = os.path.join(data.expand('${BZRDIR}', d), ud.host, relpath) | 43 | ud.pkgdir = os.path.join(data.expand('${BZRDIR}', d), ud.host, relpath) |
42 | 44 | ||
45 | def localpath (self, url, ud, d): | ||
43 | revision = Fetch.srcrev_internal_helper(ud, d) | 46 | revision = Fetch.srcrev_internal_helper(ud, d) |
44 | if revision is True: | 47 | if revision is True: |
45 | ud.revision = self.latest_revision(url, ud, d) | 48 | ud.revision = self.latest_revision(url, ud, d) |