瀏覽代碼

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.

(From OE-Core rev: d8a525afdfb5d371e76b09301c8b2741d23d1d10)

Signed-off-by: Yang Xu <yang.xu@mediatek.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Yang Xu 3 年之前
父節點
當前提交
b915b5c282
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      meta/classes-global/insane.bbclass

+ 2 - 1
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)