From patchwork Sun Nov 24 23:50:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 180134 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp2443170ilf; Sun, 24 Nov 2019 15:51:14 -0800 (PST) X-Google-Smtp-Source: APXvYqz8ypODKExgfaEPXqvU7V2W0jPDXIR2W76ae21GFNcGV2cFcG+CBsg5XQlf7rq3d0WozDky X-Received: by 2002:a17:902:690a:: with SMTP id j10mr25794727plk.67.1574639474034; Sun, 24 Nov 2019 15:51:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574639474; cv=none; d=google.com; s=arc-20160816; b=z28Ol6nUuCdqUEm4UQDeoVHgtCZNSSIcV7+zcC/1Ng1QacOXzdZTZCCoW6y0JofCzk EJD6c/dhQAD0jqm+PKWfwVle+hH2UuFRZl4zFArgrM6O+IHzTCichlfLD/xSYwonzSZo uWrj9v32HLzROyVxKERfdCQT1yE0oGZd9QAtde9GN52Eo+q8VYd1gZT4BzJtB0LtQg9g OWKB9OW5Qzx4AC/+bxuKZD/u0VfEpxVmiea87n4jqg/lDWG7GREauL8x+6LXXCFJ0ZxR 1WfjCbtcqDRC2ePnjOXMbCw4kLEiBlvTUupy/aSnkkTyagjaznSGuiy1aX4jRXd7uPke UKKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=2EET2NOoIXGthkAt5pNjgAKLVJhOYkXSFkR0LUSsi0U=; b=wHMLuL9MSc6GZGhRYZpEXJiNsxjX05VtpZG8SodP2cbGVCSIwOIVV7mHapLATDMMoy aFWULAlIsVMOJVPoCHTuydZXk+7ABLCMc/E5XN6lBY2NbFFRT9zS8FSGriHmklOZcq35 dXjOH0sC4kMGUmX5rc42JrtoUpI3J/gu8OHI63gOOq9nu61RcG2Hyoh1gsU1SITjU7T2 Cm8efzhg/oB5w3s1O6/h2uuOLjuCsMomKTWavRnA2XTIymh5NdAVYRlfqcJbEzSWKMKW W2w70YMGWGC3NlV88wCdR1cHXJAKCUcraa+Bfcl4apT+z9Xbf6RYNFu/BkmwTDE5MysH 6kQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=eYuInl6U; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id y12si5507289pfe.138.2019.11.24.15.51.13; Sun, 24 Nov 2019 15:51:14 -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; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=eYuInl6U; 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=QUARANTINE dis=NONE) header.from=gmail.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 C41457FCB1; Sun, 24 Nov 2019 23:51:03 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by mail.openembedded.org (Postfix) with ESMTP id CFF387FC42 for ; Sun, 24 Nov 2019 23:50:45 +0000 (UTC) Received: by mail-pj1-f51.google.com with SMTP id m71so5587102pjb.12 for ; Sun, 24 Nov 2019 15:50:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=urdAEMBZ6yRmHE0UtVFbdcYWbc+yJFsrlKjcLVC5Yuc=; b=eYuInl6UKyKQhQSc7wBUnXHFTwS8PveynwGa9/HsSufbnkKIsjxM+WEYJKTDxLnbax ef2T3lZPh8KFWdHJ4XjREgZ7HYdmjUQByREs7CDPpZtPOnLmgBqY4fYnIj8etq4YIF4Y jUmVmiaayZ96gOhy1WAjrzPtO0kIT8X0aVktZSDlFXivyikL88XgqR/1VRn6ErSEu6Yf +TRm4m0pGNi9dlgImCJVpmrJ975YgH+N5NEMi3yJTIJx7ePTcSEGSKEauw71sOhFvUli iNd1mqr9OvZ+H8NAuH/E4NXyzRel3/TMFkoVYCd9gzHpc+6ku+20SMI0hESMBrv64h/R 3XFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=urdAEMBZ6yRmHE0UtVFbdcYWbc+yJFsrlKjcLVC5Yuc=; b=nlY0H8er2u2GR4oc9yRN3MjerDnXpi54SRYvXAx3QbsAxcaihrkVL71Pg6MP2wigR3 0QPlSSes42FPjw6IonHJL4axXsy7lY+D5DN8j7OVLg5YTA/MhYFzSID73OcciW1xGoZV ctvaeZ98gunL2ifiO+EFGxIfZ509QM4NGeR68NFGsEGjhTbN6X0InxRpilyHMoztHBdC UTfFxGHzmgSPL5+lspAVTI2LpqR4igDZaevN8pp9K+c/pcZmVr59OV26W5O22KnS1T6j 8xgXfXlEVEybqDqAcqQwPVEVDDr6uNzGN2i2xO/nUo8xFdw9v9fuaF4oLwGge80s4CT2 OEQQ== X-Gm-Message-State: APjAAAVmlX+6GG5BGfkDiK+jNl25XKCrDM7zuJXOLObrR17RXtlqZlHi DkFRiEfu/x+hTqiLrE8czDX3YQh9 X-Received: by 2002:a17:90a:fa96:: with SMTP id cu22mr35000351pjb.121.1574639446715; Sun, 24 Nov 2019 15:50:46 -0800 (PST) Received: from akuster-ThinkPad-T460s.hsd1.ca.comcast.net ([2601:202:4180:a5c0:69ac:e4d2:e89f:98da]) by smtp.gmail.com with ESMTPSA id q200sm5619783pfq.87.2019.11.24.15.50.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 24 Nov 2019 15:50:46 -0800 (PST) From: Armin Kuster To: openembedded-core@lists.openembedded.org Date: Sun, 24 Nov 2019 15:50:08 -0800 Message-Id: <923a8736ddaddce1fa611aea586b4d22a32bc7bd.1574639349.git.akuster808@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [OE-core] [zeus 03/35] 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: , MIME-Version: 1.0 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.7.4 -- _______________________________________________ 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 1c8b222..3326944 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")) }