diff options
author | Randolph Sapp <rs@ti.com> | 2023-05-22 15:46:11 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-05-25 10:29:05 +0100 |
commit | 4cd62f72dbaa0361e97d7c118752d0a2b02adfbe (patch) | |
tree | 3d2a369a95afb13e6327fed1161e7c26157391a8 | |
parent | 3c4d78d8a1d5eca91bee66fd815c80eb0889ce81 (diff) | |
download | openembedded-core-contrib-4cd62f72dbaa0361e97d7c118752d0a2b02adfbe.tar.gz |
package: enable recursion on file globs
Enable recursion of file globs. This just allows the use of '**' in file
globs to match 0 or more subdirectories, it should not make all current
globs recursive [1].
[1] https://docs.python.org/3.6/library/glob.html#glob.glob
Signed-off-by: Randolph Sapp <rs@ti.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oe/package.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py index edb70daaf1..70040f09e7 100644 --- a/meta/lib/oe/package.py +++ b/meta/lib/oe/package.py @@ -550,7 +550,7 @@ def files_from_filevars(filevars): f = '.' + f if not f.startswith("./"): f = './' + f - globbed = glob.glob(f) + globbed = glob.glob(f, recursive=True) if globbed: if [ f ] != globbed: files += globbed |