summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-04-20 02:13:23 +0100
committerSaul Wold <sgw@linux.intel.com>2011-05-06 17:44:21 -0700
commitf77efdf544abd998b4515dd13a80e0233e8b0675 (patch)
treed7949ff32b23bc282238f9d993fcf2d072779431 /bitbake/lib/bb/fetch2/git.py
parentf15a4a76770cb5eca3cd518b0ad5f7470e761017 (diff)
downloadpoky-f77efdf544abd998b4515dd13a80e0233e8b0675.tar.gz
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index ec27f1396e..811acbf6c6 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -76,7 +76,8 @@ class Git(FetchMethod):
76 76
77 ud.localfile = ud.clonedir 77 ud.localfile = ud.clonedir
78 78
79 def fixuprevisions(self, ud, d): 79 ud.setup_revisons(d)
80
80 for name in ud.names: 81 for name in ud.names:
81 # Ensure anything that doesn't look like a sha256 checksum/revision is translated into one 82 # Ensure anything that doesn't look like a sha256 checksum/revision is translated into one
82 if not ud.revisions[name] or len(ud.revisions[name]) != 40 or (False in [c in "abcdef0123456789" for c in ud.revisions[name]]): 83 if not ud.revisions[name] or len(ud.revisions[name]) != 40 or (False in [c in "abcdef0123456789" for c in ud.revisions[name]]):