openembedded-core.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] insane.bbclass: Skip patches not in oe-core by full path in do_qa_patch
@ 2022-08-09  1:21 Yang Xu
  2022-08-12  1:52 ` Yang Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Xu @ 2022-08-09  1:21 UTC (permalink / raw)
  To: openembedded-core; +Cc: Yang Xu

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.

Signed-off-by: Yang Xu <yang.xu@mediatek.com>
---
 meta/classes/insane.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index c8b434bb54..5b2b91f6ff 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -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)
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] insane.bbclass: Skip patches not in oe-core by full path in do_qa_patch
  2022-08-09  1:21 [PATCH] insane.bbclass: Skip patches not in oe-core by full path in do_qa_patch Yang Xu
@ 2022-08-12  1:52 ` Yang Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Yang Xu @ 2022-08-12  1:52 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 6 bytes --]

ping

[-- Attachment #2: Type: text/html, Size: 6 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-12  1:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-09  1:21 [PATCH] insane.bbclass: Skip patches not in oe-core by full path in do_qa_patch Yang Xu
2022-08-12  1:52 ` Yang Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).