From c4371138f7444ecaa1fdd2b1ee4949fbc819f886 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 20 Apr 2011 02:13:23 +0100 Subject: bitbake/fetch2: Fix the problems introduced by the git fetcher AUTOREV fix The ordering constrains on the urldata_init functions are not straight forward. To avoid further problems, create a helper function to setup the source revisions which the init functions can all at the appropriate point. Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/bzr.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake/lib/bb/fetch2/bzr.py') diff --git a/bitbake/lib/bb/fetch2/bzr.py b/bitbake/lib/bb/fetch2/bzr.py index 04a9087c11..0d10eb4a2b 100644 --- a/bitbake/lib/bb/fetch2/bzr.py +++ b/bitbake/lib/bb/fetch2/bzr.py @@ -45,6 +45,8 @@ class Bzr(FetchMethod): relpath = self._strip_leading_slashes(ud.path) ud.pkgdir = os.path.join(data.expand('${BZRDIR}', d), ud.host, relpath) + ud.setup_revisons(d) + if not ud.revision: ud.revision = self.latest_revision(ud.url, ud, d) -- cgit v1.2.3-54-g00ecf