mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 09:32:17 +02:00
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: 90855ef11e3bd85eea718532f20878b72aa729b4) 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> Signed-off-by: Steve Sakoman <steve@sakoman.com>
This commit is contained in:
committed by
Steve Sakoman
parent
b32d7da361
commit
ae34dbb410
@@ -262,7 +262,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
|
||||
|
||||
Reference in New Issue
Block a user