From patchwork Thu Dec 29 14:34:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel] bitbake-layers: fix Python error during parse Date: Thu, 29 Dec 2011 14:34:12 -0000 From: Paul Eggleton X-Patchwork-Id: 17781 Message-Id: <1325169252-7588-1-git-send-email-paul.eggleton@linux.intel.com> To: bitbake-devel@lists.openembedded.org 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 --- bin/bitbake-layers | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/bin/bitbake-layers b/bin/bitbake-layers index 119b15c..b2781bb 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')