* [OE-core][PATCH] checklayer: Skip layers without a collection
@ 2020-05-22 22:08 Joshua Watt
2020-05-28 14:13 ` Joshua Watt
0 siblings, 1 reply; 3+ messages in thread
From: Joshua Watt @ 2020-05-22 22:08 UTC (permalink / raw)
To: openembedded-core; +Cc: Joshua Watt
As in other places in the file, skip layers that don't define a
collection when searching for a layer to resolve a dependency. Fixes
KeyError exceptions when attempting to access the layer collections
later
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
scripts/lib/checklayer/__init__.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/scripts/lib/checklayer/__init__.py b/scripts/lib/checklayer/__init__.py
index 5aeec2f00f..1138000275 100644
--- a/scripts/lib/checklayer/__init__.py
+++ b/scripts/lib/checklayer/__init__.py
@@ -143,6 +143,9 @@ def detect_layers(layer_directories, no_auto):
def _find_layer_depends(depend, layers):
for layer in layers:
+ if 'collections' not in layer:
+ continue
+
for collection in layer['collections']:
if depend == collection:
return layer
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [OE-core][PATCH] checklayer: Skip layers without a collection
2020-05-22 22:08 [OE-core][PATCH] checklayer: Skip layers without a collection Joshua Watt
@ 2020-05-28 14:13 ` Joshua Watt
2020-05-28 16:17 ` Steve Sakoman
0 siblings, 1 reply; 3+ messages in thread
From: Joshua Watt @ 2020-05-28 14:13 UTC (permalink / raw)
To: openembedded-core, steve
Steve,
I would like to backport this to dunfell if possible.
Thanks!
On 5/22/20 5:08 PM, Joshua Watt wrote:
> As in other places in the file, skip layers that don't define a
> collection when searching for a layer to resolve a dependency. Fixes
> KeyError exceptions when attempting to access the layer collections
> later
>
> Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
> ---
> scripts/lib/checklayer/__init__.py | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/scripts/lib/checklayer/__init__.py b/scripts/lib/checklayer/__init__.py
> index 5aeec2f00f..1138000275 100644
> --- a/scripts/lib/checklayer/__init__.py
> +++ b/scripts/lib/checklayer/__init__.py
> @@ -143,6 +143,9 @@ def detect_layers(layer_directories, no_auto):
>
> def _find_layer_depends(depend, layers):
> for layer in layers:
> + if 'collections' not in layer:
> + continue
> +
> for collection in layer['collections']:
> if depend == collection:
> return layer
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OE-core][PATCH] checklayer: Skip layers without a collection
2020-05-28 14:13 ` Joshua Watt
@ 2020-05-28 16:17 ` Steve Sakoman
0 siblings, 0 replies; 3+ messages in thread
From: Steve Sakoman @ 2020-05-28 16:17 UTC (permalink / raw)
To: Joshua Watt; +Cc: Patches and discussions about the oe-core layer
On Thu, May 28, 2020 at 4:13 AM Joshua Watt <jpewhacker@gmail.com> wrote:
> I would like to backport this to dunfell if possible.
I've already got it in the next batch of patches!
I really do appreciate the heads up on things that are suitable, I
don't want to miss anything :-)
You can find what I'm currently testing at:
https://git.openembedded.org/openembedded-core-contrib/log/?h=stable/dunfell-nut
I try to send a batch out for review at the beginning of each week, so
this patch will be sent out with next week's group.
Steve
> On 5/22/20 5:08 PM, Joshua Watt wrote:
> > As in other places in the file, skip layers that don't define a
> > collection when searching for a layer to resolve a dependency. Fixes
> > KeyError exceptions when attempting to access the layer collections
> > later
> >
> > Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
> > ---
> > scripts/lib/checklayer/__init__.py | 3 +++
> > 1 file changed, 3 insertions(+)
> >
> > diff --git a/scripts/lib/checklayer/__init__.py b/scripts/lib/checklayer/__init__.py
> > index 5aeec2f00f..1138000275 100644
> > --- a/scripts/lib/checklayer/__init__.py
> > +++ b/scripts/lib/checklayer/__init__.py
> > @@ -143,6 +143,9 @@ def detect_layers(layer_directories, no_auto):
> >
> > def _find_layer_depends(depend, layers):
> > for layer in layers:
> > + if 'collections' not in layer:
> > + continue
> > +
> > for collection in layer['collections']:
> > if depend == collection:
> > return layer
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-28 16:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-22 22:08 [OE-core][PATCH] checklayer: Skip layers without a collection Joshua Watt
2020-05-28 14:13 ` Joshua Watt
2020-05-28 16:17 ` Steve Sakoman
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.