oebb: work with bitbake master
authorKoen Kooi <koen@dominion.thruhere.net>
Wed, 23 Feb 2011 10:38:23 +0000 (11:38 +0100)
committerKoen Kooi <koen@dominion.thruhere.net>
Wed, 23 Feb 2011 10:38:23 +0000 (11:38 +0100)
commit03810d5813044a17731c2da6bbc627c7292033a8
tree6c54455d393f9302cdce2596e1cb43fbc353b767
parent1240b9891d100559cddece306b57cc48a3e984b2
oebb: work with bitbake master

Bitbake master doesn't enable fetch2 by default resulting in:

Parsing recipes...ERROR: Error evaluating '${@bb.fetch2.get_srcrev(d)}'
Traceback (most recent call last):
  File "/work/openembedded-core/sources/bitbake/lib/bb/data_smart.py", line 117, in expandWithRefs
    s = __expand_python_regexp__.sub(varparse.python_sub, s)
  File "/work/openembedded-core/sources/bitbake/lib/bb/data_smart.py", line 76, in python_sub
    value = utils.better_eval(codeobj, DataContext(self.d))
  File "/work/openembedded-core/sources/bitbake/lib/bb/utils.py", line 387, in better_eval
    return eval(source, _context, locals)
  File "SRCPV", line 1, in <module>
AttributeError: 'module' object has no attribute 'fetch2'

This fixes that

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
oebb.sh