]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
package: enable recursion on file globs
authorRandolph Sapp <rs@ti.com>
Mon, 22 May 2023 20:46:11 +0000 (15:46 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 May 2023 09:29:05 +0000 (10:29 +0100)
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>
meta/lib/oe/package.py

index edb70daaf1749521cab098c88d12b250baa2e174..70040f09e7c5f8009256f506f8af78a990846c23 100644 (file)
@@ -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