From: Randolph Sapp Date: Mon, 22 May 2023 20:46:11 +0000 (-0500) Subject: package: enable recursion on file globs X-Git-Tag: uninative-3.10~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cd62f72dbaa0361e97d7c118752d0a2b02adfbe;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git 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 Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py index edb70daaf17..70040f09e7c 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