summaryrefslogtreecommitdiffstats
path: root/bitbake/bin/bitbake-layers
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-12-29 14:34:12 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-04 14:14:39 +0000
commitf540034864cb2afdd47486b271900e1021ae0b27 (patch)
tree6f472a1762f2af1387c73f9c21baf0024ca92f27 /bitbake/bin/bitbake-layers
parente47a5daa4ff837abf7ef6a1ed3f702381ba82bb1 (diff)
downloadpoky-f540034864cb2afdd47486b271900e1021ae0b27.tar.gz
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 <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin/bitbake-layers')
-rwxr-xr-xbitbake/bin/bitbake-layers1
1 files changed, 1 insertions, 0 deletions
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
18import bb.providers 18import bb.providers
19import bb.utils 19import bb.utils
20from bb.cooker import state 20from bb.cooker import state
21import bb.fetch2
21 22
22 23
23logger = logging.getLogger('BitBake') 24logger = logging.getLogger('BitBake')