summaryrefslogtreecommitdiffstats
path: root/meta/classes-global/insane.bbclass
diff options
context:
space:
mode:
authorYang Xu <yang.xu@mediatek.com>2022-08-18 06:15:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-30 10:27:49 +0100
commitd8a525afdfb5d371e76b09301c8b2741d23d1d10 (patch)
tree2ed0f4972095d4cbb9a0a98c8e511f94cad9e232 /meta/classes-global/insane.bbclass
parent4528cb220e5365f1f4a0a50122e14480ede65130 (diff)
downloadopenembedded-core-contrib-d8a525afdfb5d371e76b09301c8b2741d23d1d10.tar.gz
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 <yang.xu@mediatek.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'meta/classes-global/insane.bbclass')
-rw-r--r--meta/classes-global/insane.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass
index 46ea41e271..db34b4bdb5 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)