* [OE-core][PATCH] lib: license_finder: Ignore non-files in license directories
@ 2026-08-24 15:58 Joshua Watt
0 siblings, 0 replies; only message in thread
From: Joshua Watt @ 2026-08-24 15:58 UTC (permalink / raw)
To: openembedded-core; +Cc: Joshua Watt
We would like to move the SPDX license exception files to a
subdirectory, but that breaks the license finder code since it assumes
everything in the license directory is a file and fails when it is a
directory.
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
meta/lib/oe/license_finder.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta/lib/oe/license_finder.py b/meta/lib/oe/license_finder.py
index 6f071f7c56..9c217cf891 100644
--- a/meta/lib/oe/license_finder.py
+++ b/meta/lib/oe/license_finder.py
@@ -48,6 +48,8 @@ def _crunch_known_licenses(d):
for lic_dir in lic_dirs:
for fn in os.listdir(lic_dir):
path = os.path.join(lic_dir, fn)
+ if not os.path.isfile(path):
+ continue
# Hash the exact contents
md5value = bb.utils.md5_file(path)
md5sums[md5value] = fn
--
2.55.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-24 15:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-24 15:58 [OE-core][PATCH] lib: license_finder: Ignore non-files in license directories Joshua Watt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.