]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake/fetch2/git: Fix a bug where AUTOREV and the git fetcher interact badly
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Apr 2011 22:31:09 +0000 (23:31 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 May 2011 17:13:01 +0000 (18:13 +0100)
commiteb799b44adab4701825f3dda5d982256781d7f78
tree3fc3041a37d220bfa5142212b5303527cde6438a
parent933350f801d95762cba3a1f260404fd25fd0a73c
bitbake/fetch2/git: Fix a bug where AUTOREV and the git fetcher interact badly

Fix a bug where ud.branches were being referenced before it was set by
the git fetcher when using AUTOREV. To do this some ordering needed
to be changed. This fixes errors like:

ERROR: Error parsing /recipes-kernel/linux/rt-tests_git.bb: Failure expanding variable
SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception
AttributeError: 'FetchData' object has no attribute 'branches'

(From Poky rev: 2d2d07275c8a2d652a221c1cd74d28c2f6f226d5)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/fetch2/__init__.py
lib/bb/fetch2/git.py