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:09 +0100 |
commit | 2f68c2d72741fc0067578848d67495140a187da3 (patch) | |
tree | 36736d733626ed2540dd6dc9826f1bcf329e3dae /meta/lib | |
parent | f18e1d2c6a13c3bd8c130f0d20ff2b62a137d84a (diff) | |
download | poky-2f68c2d72741fc0067578848d67495140a187da3.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
(From OE-Core rev: 4cd62f72dbaa0361e97d7c118752d0a2b02adfbe)
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>
Diffstat (limited to 'meta/lib')
-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): | |||
550 | f = '.' + f | 550 | f = '.' + f |
551 | if not f.startswith("./"): | 551 | if not f.startswith("./"): |
552 | f = './' + f | 552 | f = './' + f |
553 | globbed = glob.glob(f) | 553 | globbed = glob.glob(f, recursive=True) |
554 | if globbed: | 554 | if globbed: |
555 | if [ f ] != globbed: | 555 | if [ f ] != globbed: |
556 | files += globbed | 556 | files += globbed |