From f540034864cb2afdd47486b271900e1021ae0b27 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Thu, 29 Dec 2011 14:34:12 +0000 Subject: 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]. (Bitbake rev: a228f0a32c2c14d62effbbba5f4fada4cd3817f6) Signed-off-by: Paul Eggleton Signed-off-by: Richard Purdie --- bitbake/bin/bitbake-layers | 1 + 1 file changed, 1 insertion(+) (limited to 'bitbake/bin') diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers index 119b15c172..b2781bbd56 100755 --- a/bitbake/bin/bitbake-layers +++ b/bitbake/bin/bitbake-layers @@ -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') -- cgit v1.2.3-54-g00ecf