From patchwork Wed Nov 13 15:32:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 179328 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9763515ilf; Wed, 13 Nov 2019 07:36:18 -0800 (PST) X-Google-Smtp-Source: APXvYqxHnruT1JP0ars77P22NNw4QCFUxEQN85ClBJaOrU260q9Tm95levhnDPVfblAbGFleEk0L X-Received: by 2002:a63:f916:: with SMTP id h22mr4489573pgi.423.1573659378403; Wed, 13 Nov 2019 07:36:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573659378; cv=none; d=google.com; s=arc-20160816; b=vtyn110tZXPG3SYl54ivixkEYYjad3baEYTYiIlZERc9rg2ec5Fk4q58SB9Cm2y+zI elPBTJSRnTzxKImnn033G/AfPsBgpUlRgNGnn9xh09YCP2KRR2vijZDt3bBoCLKBsR7n ruiTAgXrMahq6Zye89z1Z0rzWjMRN7+sl+y1Sx8C3Kpylpua82jWeXw/0zGbTPDjra9A zuyr1j2oW/gqgb2gGtFvgTmIo9+ULazXeBAmgc6dOMryi1JF1MqlGaZAkdYgh3ZkAVBb qHLciFR8PzCk/Gm7sLznW5g0IOubt+1/sVzR9JwyNq4c4amd5fIB9xMOBTTOG+3d2KNY oZgQ== 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=OpTBkkKQSw+afigI2hL2aFHFby9oD/H75t3H0ih3oDs=; b=ETJoa6ecfSznf41+p0Q+oRo8mF9xljAmXPrJCjIfBHOY8n+ltKBdeYGgYI1/3jesun 1z5Z0LDaDmu09c9mSMPZ3CeSaOPD91nE+lr2e0wlZ+k8m6+GB6pu+46eRBtDOzGbn4FA n/CsXirMT+TYwMYaJMeqccFhzTWrHjV3EgIUuezUrBI1dWdvHKAVXe6cFzQZpKlkin7M ZDmL0+eI0Wp72uLM0gTbjUecQvdqJTbgKVq8MlE+0qpgVSqnv4t12C5fnWAmmBzN0ipQ NWsFJmEFcG52/GjfGhfCm7279x34KJdUlNjV5gggdiBBcXfJxd9LLMaxz9wJ2hto88uC yw0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b="eP/vcaOH"; 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 x131si3490360pgx.396.2019.11.13.07.36.18; Wed, 13 Nov 2019 07:36:18 -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="eP/vcaOH"; 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 1982B7F822; Wed, 13 Nov 2019 15:33:02 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by mail.openembedded.org (Postfix) with ESMTP id 959497F848 for ; Wed, 13 Nov 2019 15:32:47 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id k1so278277pgg.12 for ; Wed, 13 Nov 2019 07:32:49 -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=duxQDG8OK/jynCSpyBfTGHs7wKcqkXYCfCD9PLM05Gk=; b=eP/vcaOHAWTVfhLw5xikAKFZvsO6tbMzQpucFaCzjxEoj1J0uaJ2/9SMPlMLXZcoyy 4HRbOvetVJI5Ty4/Wnr6YlGPl5Kc5tlbMre7KjQMt0oXa8c+qp9oCF/Lg6CRhmDjI0Qe +2X+qvwdpOOUwZSLfLlpzXEu51qoZh7y59yirfffCsTNPP8pq9XjxZz8HChyJe+Uj0qx Z55fIQkctxx8/F1gydg5wxPTqfw6oyZGlYZi9EkVd6MQyZSuUpcX82Ni9qI8Pkq+U40Q mwBOnfUKfK+w/OhuSBVr0W7o1uCc32cNVPOIYnMTeMGogA8j7VHrWKtDvClumygvvUoa noow== 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=duxQDG8OK/jynCSpyBfTGHs7wKcqkXYCfCD9PLM05Gk=; b=IkinO9itlHUbA/1OoeDgxBWx3CFvn9jEKuJDdVN0GbV0dNEohr3ZN0TRmIgr4B9Ypn +XYwW8CsuQT4wxbMTPwqkqgAlT5M5eZH9eM5mwGLfk6SYPPOJ5WvaCXgBLo8AoyYFVDf Pi2b04cZcLXSSmlRgox2rUQNjxjATvFfp92Pg82mEO77X6vw0RMomiyuD7fOipU2LDo8 ja0oPuOfMwVMeDt1S//lKn8sVBkpBD1Dbv8Ido5mXijsZE8mukOJ4Qcw50Dc7IxnQUuO vqQKmQjQ6IMiHfSWE6NepQeWBKzpG5RkkBdrA0xQN5qm+UICsNyNklSlFgiFblqHAaW2 soMQ== X-Gm-Message-State: APjAAAVlj9eMvM+TGYwRmg4t+lniDja5vMX32pil1X1XnOhkUeelM59x 7HYNF/wPLB3f4v1VjDUeiRbQ2NEr X-Received: by 2002:a62:1c8:: with SMTP id 191mr5189345pfb.152.1573659168586; Wed, 13 Nov 2019 07:32:48 -0800 (PST) Received: from akuster-ThinkPad-T460s.mvista.com ([2601:202:4180:a5c0:2cf9:53ea:e6ab:d378]) by smtp.gmail.com with ESMTPSA id s18sm3713613pfm.27.2019.11.13.07.32.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Nov 2019 07:32:47 -0800 (PST) From: Armin Kuster To: openembedded-core@lists.openembedded.org Date: Wed, 13 Nov 2019 07:32:05 -0800 Message-Id: <6b5cadd1a5822641285946f7e2ad56e294658621.1573658916.git.akuster808@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [OE-core] [zeus 23/31] cve-check: failure to parse versions should be more visible 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 Signed-off-by: Armin Kuster --- meta/classes/cve-check.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 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 f87bcc9..1c8b222 100644 --- a/meta/classes/cve-check.bbclass +++ b/meta/classes/cve-check.bbclass @@ -222,7 +222,7 @@ def check_cves(d, patched_cves): to_append_start = (operator_start == '>=' and LooseVersion(pv) >= LooseVersion(version_start)) to_append_start |= (operator_start == '>' and LooseVersion(pv) > LooseVersion(version_start)) except: - bb.note("%s: Failed to compare %s %s %s for %s" % + bb.warn("%s: Failed to compare %s %s %s for %s" % (product, pv, operator_start, version_start, cve)) to_append_start = False else: @@ -233,7 +233,7 @@ def check_cves(d, patched_cves): to_append_end = (operator_end == '<=' and LooseVersion(pv) <= LooseVersion(version_end)) to_append_end |= (operator_end == '<' and LooseVersion(pv) < LooseVersion(version_end)) except: - bb.note("%s: Failed to compare %s %s %s for %s" % + bb.warn("%s: Failed to compare %s %s %s for %s" % (product, pv, operator_end, version_end, cve)) to_append_end = False else: