From patchwork Sun Dec 8 18:35:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niko Mauno X-Patchwork-Id: 180965 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp3448641ile; Sun, 8 Dec 2019 10:39:38 -0800 (PST) X-Google-Smtp-Source: APXvYqypFH3BUvQMFhiimOEE4o9CSFN0F2Dn1aHXLNYmKHdnepHfB4rlfAbLGolJtX+f2rqn1ozz X-Received: by 2002:a17:902:760c:: with SMTP id k12mr25413782pll.33.1575830378391; Sun, 08 Dec 2019 10:39:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575830378; cv=none; d=google.com; s=arc-20160816; b=YIU1iBLYS+5hgYUMJAGcpE2udnP/4RY9M3NZciHE1Z+5Q4h8SS6ULcJEHLFoik1Y+l CeNuXIKDLycStrlz5RxSpmu+A3DiE5dk6kF9G/CzqdH/MbhyN20q0LfoW3o6S2H/5HgV puT5VILzfiar1HYbZPRzdXKKVNZ7enRZr0m3JGnGcjQ2zB4GaPbcl58LXpabHbZ/VCPq pKItonH3tyyRi0AYdljJP5IG1qStJGArj1MACvzHj/v38dAGsciHIvTLvB8qA6wfDzIr CYwgxwzE84hz9GApPtSAZc3MLDVJgu0DGOLoY2Z4EIfFX5eeS2+X9gOOQQK87vPTFd4g lBdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :delivered-to; bh=A/tElk01rCVi1XhnTUVW+mT51iw1JZCQ8GwHYOKKeR4=; b=NYpXsgiQ7PhL18USCBMb7B11sLDVct3ARZIcecF0+ZXsKvDOWxbwo2bGKaXIsAvLZo WKGEiefZII/3CKUCZDGBWNfBUXcc+Zp4Wo/NclbgloCFrNpOp+qLlaF0R8UQ2H4mr5QT YuBtKHKGi+1qSP2cr4Uv2tmtwoiDR3RpWEMY+Y7qD83FQ8B2tD5q8ev2qNDM19uG8HZS E/xKW3HV4GY8o78hk1jD31sK8AOhYfS4+J25SM5C9YRh71OegA6qfM/63hr+8A5MRT2u sfl4WBuN14nHaHklQgbxldVocmqT6U8Tg5yq7B0vntHYdHqNxBECiEvmM+U/6BSrZRpB Zwaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id a14si19139922pfr.142.2019.12.08.10.39.38; Sun, 08 Dec 2019 10:39:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 3F2D57FBA6; Sun, 8 Dec 2019 18:39:36 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from sypressi2.dnainternet.net (sypressi2.dnainternet.net [83.102.40.154]) by mail.openembedded.org (Postfix) with ESMTP id 613207FBA6 for ; Sun, 8 Dec 2019 18:39:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sypressi2.dnainternet.net (Postfix) with ESMTP id 3352015269; Sun, 8 Dec 2019 20:39:36 +0200 (EET) X-Virus-Scanned: DNA Internet at dnainternet.net X-Spam-Flag: NO X-Spam-Score: 0.653 X-Spam-Level: X-Spam-Status: No, score=0.653 tagged_above=-9999 required=6 tests=[SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from sypressi2.dnainternet.net ([83.102.40.154]) by localhost (sypressi2.dnainternet.net [127.0.0.1]) (DNA Internet, port 10041) with ESMTP id P_er6RjLi08M; Sun, 8 Dec 2019 20:39:35 +0200 (EET) Received: from luumupuu2.dnainternet.net (luumupuu2.dnainternet.net [83.102.40.55]) by sypressi2.dnainternet.net (Postfix) with ESMTP id BD0E0150FC; Sun, 8 Dec 2019 20:39:35 +0200 (EET) Received: from localhost.localdomain (62-78-161-185.bb.dnainternet.fi [62.78.161.185]) by luumupuu2.dnainternet.net (Postfix) with ESMTP id D95DB79; Sun, 8 Dec 2019 20:39:30 +0200 (EET) From: Niko Mauno To: openembedded-core@lists.openembedded.org Date: Sun, 8 Dec 2019 20:35:50 +0200 Message-Id: <20191208183557.32589-4-niko.mauno@iki.fi> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191208183557.32589-1-niko.mauno@iki.fi> References: <20191208183557.32589-1-niko.mauno@iki.fi> MIME-Version: 1.0 Subject: [OE-core] [thud-next][PATCH 04/11] cve-check: we don't actually need to unpack to check X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Ross Burton The patch scanner works with patch files in the layer, not in the workdir, so it doesn't need to unpack. (From OE-Core rev: 2cba6ada970deb5156e1ba0182f4f372851e3c17) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/classes/cve-check.bbclass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/cve-check.bbclass b/meta/classes/cve-check.bbclass index 1c8b2223a2..3326944d79 100644 --- a/meta/classes/cve-check.bbclass +++ b/meta/classes/cve-check.bbclass @@ -62,7 +62,7 @@ python do_cve_check () { } -addtask cve_check after do_unpack before do_build +addtask cve_check before do_build do_cve_check[depends] = "cve-update-db-native:do_populate_cve_db" do_cve_check[nostamp] = "1" @@ -70,7 +70,6 @@ python cve_check_cleanup () { """ Delete the file used to gather all the CVE information. """ - bb.utils.remove(e.data.getVar("CVE_CHECK_TMP_FILE")) }