Hi Ola,
On Friday, 23 February 2018 8:42:34 PM NZDT Ola x Nilsson wrote:
> > +def is_path_under(path1, possible_parent):
>
> Changing the signature to is_path_under(possible_parent, *paths) will make
> the list management more natural.
Right, it does simplify things a little. In fact given the
> From: openembedded-core-boun...@lists.openembedded.org
> [mailto:openembedded-core-boun...@lists.openembedded.org] On Behalf
> Of Paul Eggleton
> Sent: den 23 februari 2018 04:02
> To: openembedded-core@lists.openembedded.org
>
> Signed-off-by: Paul Eggleton
>
In a few places we have checks to see path A is under path B, by adding
/ to the end of the path B and then seeing if path A starts with the
suffixed path B. Unfortunately there are two potential flaws: (1) path A
needs to be suffixed with / as well or the directory itself won't match
(semantics