From patchwork Fri Nov 22 11:39:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anuj Mittal X-Patchwork-Id: 180054 Delivered-To: patch@linaro.org Received: by 2002:ac9:2f4d:0:0:0:0:0 with SMTP id c13csp92803ocg; Fri, 22 Nov 2019 03:40:41 -0800 (PST) X-Google-Smtp-Source: APXvYqxyGhtx+i+y1uZLNZZxP+rgaC/XkTyMla/v53+Ixr3hQwsavWpWMYQ2q7zAbNLgjjcZOEVR X-Received: by 2002:a63:204e:: with SMTP id r14mr15781058pgm.101.1574422841294; Fri, 22 Nov 2019 03:40:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574422841; cv=none; d=google.com; s=arc-20160816; b=aLnlw6u2A+AHhpTzTs9WM86p9VRFAW1PP8WSNHPuUhBjM61vNkWJ8Ko+JLOTsSVzzs Ry1quvlSbYJPeg3CT59Oh4flhn5DrOEJ+gjdTzztLUQRQfqv4x11Y5COyuyEjkSWRgt+ gqN59Eo6DWWDhPniNM4iGMYesovete9pyOteoMLQlgXDTQRzEa26tL4F6qe8TFD3CWdk mUQi+hDorRDkQw9f80zhJWJ25HFUhHNP52qHrx3w4CqnQ0zg65PeVQJzyk3wQG03AFEt kMVHBuYsXjFpp3X/Rq/dQFns09bHO3DkKxjq3gi14prXsFmKxiz/ra/lnuOdqPOkPtkd W1Qg== 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=qczBHbg72scpKJS4VEJ5UWbbs1vSXMSI6lKlZofxWIc=; b=Z8g5PXgUfj1RJ70/NPSMcUKMQuBnSW0obKUW1vknlBxBbREdrpTYfwjLXrTwaGywi6 JugnHNk1xlgqF43EPfVfgpsJuMYYQe6lONhWCNYQipOPZdp3/UeggDm6TrdntC/O1EiH u3RHnZ+IruSjoDrD1G0lwX9LEcijnzH+FY6/99mjiLOZdWsqOrs5bjCT2p6MzVujdEZd cWcujCAawgcakRm8C0GPpCces4G2+wle+Wm/hAedrE0ENmxR5mw7ByzouXJpN+N6u5bB huXcnD1Zw8gzjfR7qXBnhiG987dyZBTrioEDqt48X0ZnIdHHn51zJV/ccy0C/3B7vPE0 m+Fw== 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=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id l67si3516242pfl.287.2019.11.22.03.40.40; Fri, 22 Nov 2019 03:40:41 -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=intel.com 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 452397FCDB; Fri, 22 Nov 2019 11:40:33 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mail.openembedded.org (Postfix) with ESMTP id 39B997FCC0 for ; Fri, 22 Nov 2019 11:40:11 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Nov 2019 03:40:12 -0800 X-IronPort-AV: E=Sophos;i="5.69,229,1571727600"; d="scan'208";a="201485306" Received: from anmitta2-mobl1.gar.corp.intel.com ([10.255.164.245]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Nov 2019 03:40:09 -0800 From: Anuj Mittal To: openembedded-core@lists.openembedded.org Date: Fri, 22 Nov 2019 19:39:02 +0800 Message-Id: <639dfde9437ac937a6996d4b6aa241d5184f4f74.1574422359.git.anuj.mittal@intel.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: References: MIME-Version: 1.0 Subject: [OE-core] [zeus][PATCH 03/15] 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 Signed-off-by: Anuj Mittal --- meta/classes/cve-check.bbclass | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.21.0 -- _______________________________________________ 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")) }