From: Yang Xu Date: Thu, 18 Aug 2022 06:15:18 +0000 (+0000) Subject: insane.bbclass: Skip patches not in oe-core by full path X-Git-Tag: 2022-10~281 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d8a525afdfb5d371e76b09301c8b2741d23d1d10;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git insane.bbclass: Skip patches not in oe-core by full path 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 Signed-off-by: Alexandre Belloni --- diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass index 46ea41e2711..db34b4bdb58 100644 --- a/meta/classes-global/insane.bbclass +++ b/meta/classes-global/insane.bbclass @@ -1214,11 +1214,12 @@ python do_qa_patch() { import re from oe import patch + coremeta_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(coremeta_path): continue kinda_status_re = re.compile(r"^.*upstream.*status.*$", re.IGNORECASE | re.MULTILINE)