[OE-core] [PATCH 1/8] lib/oe/path: implement is_path_under()
Paul Eggleton
paul.eggleton at linux.intel.com
Sun Feb 25 21:56:15 UTC 2018
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 parameter order is
changing I'll rename it to is_path_parent() at the same time.
> This function will return True if path1 is the empty list. Is that
> intentional?
I don't believe so. I'll change the function to return False in that case,
well spotted.
Thanks,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
More information about the Openembedded-core
mailing list