From patchwork Mon Nov 11 18:29:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Armin Kuster X-Patchwork-Id: 179104 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp7023107ilf; Mon, 11 Nov 2019 10:31:46 -0800 (PST) X-Google-Smtp-Source: APXvYqxsw4PqXBmsBCSnWJuRCNj7c+tsIgpLBo9l87tyFxGzX/QJ5fh48fs+gttRpHU8kyhRxwlk X-Received: by 2002:a63:1f09:: with SMTP id f9mr29241618pgf.89.1573497106440; Mon, 11 Nov 2019 10:31:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573497106; cv=none; d=google.com; s=arc-20160816; b=sgXRxDo0ujxUwpZ/SuDEG2FuwHoLy87MyAIGkXHwnfRaHFbLbpb46MWdiMesgaHgAu 78Sr/BNZ1uwoOeo9mp4ZG8ssDAdqjfjPApeMZcVf3ATEYGnulIAuU7aRzn7RgFU3aDDr fOsvK5IuHlwxl/wKweQBptQeVTVTvJPftHaUn7ymxdU83S/betydDTvkrpqkb6aQTjcC yWgLWnsRc8K0BpfKwhkT4dU/s0AQLErKMmG16oK5hamcjdTCZaMpmFTcofDf0f8va2GN 7mDVomLRBsmMN9DB2dQKOEXqjdCHSaCKrHgYdTbUXvsctHIr2xyO4lBYzyPSd45QVAi0 KiHw== 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=t9SlXchbtPrJPUajgTKyHSDiUmW83Fv7DY/GTFl0OYx/Jb2KPFzU8t3IUuUSE3DnOZ oKRsvjf2OhsKP2Q0qeNejUP8qFW3xM66eplbtWYqJ1Ogl1brPFhwBKxk12iwGbkxqf1c 3mTvia5aEv//BwIX35pNqM3NCL/jWKnV0bH/OyHQ/JMEkRDAy8iyhS67zd/EE4xBg9jn BH88GqVDr9PCAmRVbOCauBu+HmAqBlR+2+RKaD3/uUQe01jr+fC5jzu0iZgQXNCTWoRF VfN3Rs3mlrMe5I1Pw7TJVTF04KVOjgNlo4BO7QOy1mQeeDa4SZUcEnyYw5J2puTAEv2k xdQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=C6YikR3l; 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 3si17999963ple.154.2019.11.11.10.31.46; Mon, 11 Nov 2019 10:31:46 -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=C6YikR3l; 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 6DB7B7FC4F; Mon, 11 Nov 2019 18:30:35 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by mail.openembedded.org (Postfix) with ESMTP id 7DA2E7FAA3 for ; Mon, 11 Nov 2019 18:30:20 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id n13so11253834pff.1 for ; Mon, 11 Nov 2019 10:30:21 -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=C6YikR3lDgReV4Npw1u0tzI78bLlcukTa1W3UHx1Ue1OPodaQj3CfyQNFLV8XJ5SFZ PB+B8ft1fSMSvUvrmV+3H9/8WN6UV20v25CbTdwH6VD43Iaedd/+enh5/IRwbLwOi1hr +un/QA6PjRxRAEa0saAoUEN0NL4ouGofeKl7tqYnShQq5yxB8Ka6IEjuBU6hWznzYMTP G4c1WbTPI92f5n7CHnYRuL4B2/yPAp1spr81qMwZTw51hdid0lovyetGY+DEJCKakGuZ wBwqIIEtxyXso0w/KpJIdyELiCZmkye7GuBHJlKcT5nDmeAr3ulcCYxubanqX1T+BB7+ uz/Q== 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=eT4sYc0lBgae/fhwY9BCaFC+z8aeyJHfLh8O5gICvxMGfx57vAJU49fpOy9Q38D7z6 8J8E7H6kzX/95jQr9F+w1iZJAH9Ij4F3Th6+DbrtwIOStPcJRsz2g6oIxFCNYAW27TFN 0CRRIOdXiJKwhZxwfsli3SdMdr86Lbq/ie09gG6t93GUHuaEkl3T/Zh+mVR3i0aZXz5O irOth6DCfFXscGEPdFYVvpBxnfQYiObjjn2LXLgJBv/uSrHHga7y+lqtWqz5ojas5c8a U0p7m5w5lRue6Lx3mP2EHm3zQcPppKcgGKhJl/6j4tMrgzv/KgWGCYOKOehi48V8+VEo OAnw== X-Gm-Message-State: APjAAAXBMWQ2Sw1gru0zRqRwrHcMIRpw4O16S5GEFq0edIW4LEzWnf3Z r2rMMYcTQbpwE9vY09MgwLF4KfiP X-Received: by 2002:aa7:96f3:: with SMTP id i19mr32101634pfq.173.1573497021545; Mon, 11 Nov 2019 10:30:21 -0800 (PST) Received: from akuster-ThinkPad-T460s.mvista.com ([2601:202:4180:a5c0:604a:b703:29ca:5c7d]) by smtp.gmail.com with ESMTPSA id l62sm17731698pgl.24.2019.11.11.10.30.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 Nov 2019 10:30:21 -0800 (PST) From: Armin Kuster To: openembedded-core@lists.openembedded.org Date: Mon, 11 Nov 2019 10:29:55 -0800 Message-Id: <6b5cadd1a5822641285946f7e2ad56e294658621.1573496794.git.akuster808@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Subject: [OE-core] [zeus 13/21] 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: