* [PATCH] bitbake-layers: fix Python error during parse
@ 2011-12-29 14:34 Paul Eggleton
2012-01-04 14:15 ` Richard Purdie
0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2011-12-29 14:34 UTC (permalink / raw)
To: bitbake-devel
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>
---
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')
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] bitbake-layers: fix Python error during parse
2011-12-29 14:34 [PATCH] bitbake-layers: fix Python error during parse Paul Eggleton
@ 2012-01-04 14:15 ` Richard Purdie
0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2012-01-04 14:15 UTC (permalink / raw)
To: Paul Eggleton; +Cc: bitbake-devel
On Thu, 2011-12-29 at 14:34 +0000, Paul Eggleton wrote:
> 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>
Merged to master, thanks.
Richard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-04 14:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-29 14:34 [PATCH] bitbake-layers: fix Python error during parse Paul Eggleton
2012-01-04 14:15 ` Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.