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/git.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/fetch2/git.py') diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 553e1281f2..d462acfb36 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py @@ -76,7 +76,8 @@ class Git(FetchMethod): ud.localfile = ud.clonedir - def fixuprevisions(self, ud, d): + ud.setup_revisons(d) + for name in ud.names: # Ensure anything that doesn't look like a sha256 checksum/revision is translated into one if not ud.revisions[name] or len(ud.revisions[name]) != 40 or (False in [c in "abcdef0123456789" for c in ud.revisions[name]]): -- cgit v1.2.3-54-g00ecf