diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2011-12-29 14:34:12 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-04 14:14:30 +0000 |
commit | a228f0a32c2c14d62effbbba5f4fada4cd3817f6 (patch) | |
tree | 7f55ce9795305a0e81259ba4b0f90683557e03cc | |
parent | 6c0babf08909307ab69a66ed06e77e8818b2a8c5 (diff) | |
download | bitbake-a228f0a32c2c14d62effbbba5f4fada4cd3817f6.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].
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | bin/bitbake-layers | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/bitbake-layers b/bin/bitbake-layers index 119b15c17..b2781bbd5 100755 --- a/bin/bitbake-layers +++ b/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') |