Skip to contentSkip to conversation

bitbake-layers: fix Python error during parse

PATCH Applied Paul Eggleton 2 participants 2 messages Dec 29, 2011 – Jan 4, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake-layers: fix Python error during parse

If "bitbake-layers show_layers" was run when the cache was dirty forcing a parse, it failed with the following error:

ERROR: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception AttributeError:
'module' object has no attribute 'fetch2'

A simple import of bb.fetch2 in bitbake-layers fixes this.

Fixes [YOCTO #1855].

---
 bin/bitbake-layers |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
bin/bitbake-layers +1 -0
index 119b15c..b2781bb 100755
@@ -18,6 +18,7 @@ import bb.cooker
 import bb.providers
 import bb.utils
 from bb.cooker import state
+import bb.fetch2
 
 
 logger = logging.getLogger('BitBake')
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 7 lines · Paul Eggleton

If "bitbake-layers show_layers" was run when the cache was dirty forcing a parse, it failed with the following error:

ERROR: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception AttributeError:
'module' object has no attribute 'fetch2'

Quoted 5 lines

A simple import of bb.fetch2 in bitbake-layers fixes this.

Fixes [YOCTO #1855].

Merged to master, thanks.

Richard