From patchwork Thu Nov 7 23:58:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 178835 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp1837678ilf; Thu, 7 Nov 2019 15:59:00 -0800 (PST) X-Google-Smtp-Source: APXvYqwBg9O+wi7hxja6vFBh5IzsVpigYj8HZd6LSBHMgeSZc5eu0LmGED9q1KZHt/Rdli3nmG8j X-Received: by 2002:a17:902:8690:: with SMTP id g16mr7251349plo.194.1573171140661; Thu, 07 Nov 2019 15:59:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573171140; cv=none; d=google.com; s=arc-20160816; b=x7FH6KXs8ahYRqihuCA0V9XTgK5TAMsmTmnayLczHoGj7bN7b9tgg6HCa8FFf40eTy 6JrbdBxDKcVVaO8OB1TSz3Y1fDSjVjxDBUe9/cuiFDa18s0VyctX9sGEOiWdyR5jx5k4 so9EOOIU+hcL1USNrms9nL5UTf09QvrgzNcF7A5U2PRC5Pwn8f0JBzdphdiW4tMaJOuV tVMzi5jJkv3wMMimkvWHLwoQkSoI4nCra00GhOS4Y5ZxBU3o5P6rotokd4KPif0lh38J aVP0UGgXva4V+3yVGOdLESYDw96W+K95lcpO5YDJbs6EBISW8aDPCKJURSNLLfK1kSos sJBg== 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 :dkim-signature:delivered-to; bh=fmDmv/qd179qOIohdk2LPzdfZ0enpXnNZVTFmQiVDfI=; b=Uq07/eTAHyiXbcTPygRGGaSdmj+6UEck2BbQ2/Mryy2Iz+cp9s5wn2g44y5iZjrIfs HgPRmcZDjokAMS3ghcYHIirRV4S7EVoBgI24UQonBzstY5u52tkefmpp0NY5jNtk7Fkv 2B95FWif30w+6dCJHQ56dY0okf5FoOLaR/2wgNfRav2Uayioc8xo973eI4meegQR/MVH m+j7IqYxVMnGkZfyecRxXKhYfWWf7mRQtKiIvjb2qZpeF8S5wZJm1NP/hNXij4Is2v+q Va/BP1n3fY8nXJREjzNKk0q+zVDnntLZrZ+4UXnhPFrKsuRFrpq3ZSf8tyLpNmZvqJwd 1drw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=Sq9v1Nsq; 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 j30si4560810pgb.587.2019.11.07.15.59.00; Thu, 07 Nov 2019 15:59:00 -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=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=Sq9v1Nsq; 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 3E3337FBCD; Thu, 7 Nov 2019 23:58:52 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by mail.openembedded.org (Postfix) with ESMTP id 0223B7FA88 for ; Thu, 7 Nov 2019 23:58:36 +0000 (UTC) Received: by mail-wr1-f44.google.com with SMTP id b3so5012366wrs.13 for ; Thu, 07 Nov 2019 15:58:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=sN8mTAXvhFbsewVbDOBqh3cEnNLgks6SCZUx5WU7qHA=; b=Sq9v1NsqrZ1dWv0w+9EXznj/t1pWtonw5XzqSg4sUwmzT8WQMIFh4RxsnQTJqhMrjc 8cXGbLzQWIKSSzVS6+EcnwF04sxkt7Kc2mLc1azNPAi3uZzwJ2uCmKSP31DD+R3Wg+F6 n6q6dX6m6kcVXPfmAxQLLjTpQj9s3X9Ea2fOI2hXmuE5mdR5klD2aI8ioMN/5L7G+Pj0 tacwFcSTytJeSnxemUEbAOwN7K6Rxpyz67ABnd8LlyMfVCVmEszOj3ZjD+Gqrz0Vvhvv JVEGc85+NIFBXRSb1vnDhYhGN5n8wlPJs0oRlAqdrPTmA5cCJ72P2Qq9ARi8pbg3+8du OetA== 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:mime-version:content-transfer-encoding; bh=sN8mTAXvhFbsewVbDOBqh3cEnNLgks6SCZUx5WU7qHA=; b=oM+X7mNXYHzAWdiZjxXJ0wybxCCYx2/ixs25mW8y13JfvOEdwX9oJ4QA1OWc5Gy5YR GvWFheUUE8HSpvLTwSQA82VltBkrcjxM43CsiVoY1+FaKEe/zPgN+X24lvvw91arpRB9 uElNi9uf01O8/yrBqJtK677TWtB7zNkEiTqIDFZAchGCUhQNtpfKxRJRKeJYu6NamRiR pOfzeKyBockv+delxdzcUt/o9ylb3un2AUYROLmdMGSEab/lblXHXZON9bsuMjk+v1Ne ijob3cwXrwYag9jCESQ+oxmTj9LvDloS18jHQ8C07Qq7GA0JHR9MXr79Bwn3c4UOsBuS yh+Q== X-Gm-Message-State: APjAAAX8mlqWfOBkE+YbegRz7XXQZEWLb7n5wLC9NVV/MAjKKZGxj0MG hbztu6kpK6oXkjUgcoRrA+QimS5Zscg= X-Received: by 2002:a5d:448a:: with SMTP id j10mr5856315wrq.79.1573171117563; Thu, 07 Nov 2019 15:58:37 -0800 (PST) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id f13sm3702821wrq.96.2019.11.07.15.58.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Nov 2019 15:58:37 -0800 (PST) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 7 Nov 2019 23:58:29 +0000 Message-Id: <20191107235830.26644-4-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191107235830.26644-1-ross.burton@intel.com> References: <20191107235830.26644-1-ross.burton@intel.com> MIME-Version: 1.0 Subject: [OE-core] [PATCH 4/5] 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 The patch scanner works with patch files in the layer, not in the workdir, so it doesn't need to unpack. Signed-off-by: Ross Burton --- 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 1c8b2223a20..3326944d791 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")) }