]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
insane.bbclass: Skip patches not in oe-core by full path
authorYang Xu <yang.xu@mediatek.com>
Thu, 18 Aug 2022 06:15:18 +0000 (06:15 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 30 Aug 2022 09:27:49 +0000 (10:27 +0100)
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>
meta/classes-global/insane.bbclass

index 46ea41e2711509e8fde13b265ff19b083118a9e7..db34b4bdb58dde7b85d2fa27d921f52dfc2b09e7 100644 (file)
@@ -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)