All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Watt <jpewhacker@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Joshua Watt <JPEWhacker@gmail.com>
Subject: [OE-core][PATCH] lib: license_finder: Ignore non-files in license directories
Date: Mon, 24 Aug 2026 09:58:05 -0600	[thread overview]
Message-ID: <20260824155805.2173246-1-JPEWhacker@gmail.com> (raw)

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



                 reply	other threads:[~2026-08-24 15:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260824155805.2173246-1-JPEWhacker@gmail.com \
    --to=jpewhacker@gmail.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.