A LICENSE that contains an unknown identifier, as go-mod-update-modules
writes it for modules whose license it could not classify, made
do_populate_lic fail with an AttributeError in get_license_path instead
of the license-exists QA error. Give UnknownId the same name property
as LicenseId and ExceptionId so the lookup can fail gracefully.

AI-Generated: Uses Claude Code (Claude Fable 5.1)
Signed-off-by: Markus Volk <[email protected]>
---
 meta/lib/oe/spdx_license.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/lib/oe/spdx_license.py b/meta/lib/oe/spdx_license.py
index 1e201f21d5..7369eca9ef 100644
--- a/meta/lib/oe/spdx_license.py
+++ b/meta/lib/oe/spdx_license.py
@@ -240,6 +240,10 @@ class Identifier(Node):
 
 
 class UnknownId(Identifier):
+    @property
+    def name(self):
+        return self.ident
+
     @classmethod
     def reduce(cls, stack, lookahead):
         if not check_stack_types(stack, [Token]):
-- 
2.55.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#246396): 
https://lists.openembedded.org/g/openembedded-core/message/246396
Mute This Topic: https://lists.openembedded.org/mt/121371711/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to