Skip to contentSkip to conversation

insane.bbclass: Skip patches not in oe-core by full path in do_qa_patch

PATCH Superseded Yang Xu 1 participant 2 messages Aug 9, 2022 – Aug 12, 2022

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Yang Xu

author
#0 lore raw

PATCH 1/1 insane.bbclass: Skip patches not in oe-core by full path in do_qa_patch

The full path of patch may contain '/meta/' but not in oe-core, skip patches by checking it starts with oe-core full path or not.

---
 meta/classes/insane.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/insane.bbclass +2 -1
index c8b434bb54..5b2b91f6ff 100644
@@ -1208,11 +1208,12 @@ python do_qa_patch() {
     import re
     from oe import patch
 
+    oecore_path = os.path.join(d.getVar('COREBASE'), 'meta/')
     for url in patch.src_patches(d):
        (_, _, fullpath, _, _, _) = bb.fetch.decodeurl(url)
 
        # skip patches not in oe-core
-       if '/meta/' not in fullpath:
+       if not os.path.abspath(fullpath).startswith(oecore_path):
            continue
 
        kinda_status_re = re.compile(r"^.*upstream.*status.*$", re.IGNORECASE | re.MULTILINE)
Signature · 1 line
2.25.1