From patchwork Sun Dec 8 18:35:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niko Mauno X-Patchwork-Id: 180964 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp3448332ile; Sun, 8 Dec 2019 10:39:10 -0800 (PST) X-Google-Smtp-Source: APXvYqyF3v3is/SXC77FNeQug1wwxY97IlxOqGQpzrd5XOZPwOdDdoNP3RxWMC1AM3QvcNXaTwaj X-Received: by 2002:a17:902:8491:: with SMTP id c17mr24177703plo.143.1575830349862; Sun, 08 Dec 2019 10:39:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575830349; cv=none; d=google.com; s=arc-20160816; b=Ix3LxfS643NS/B7joQAR00a9lmzpZLhEmc49NmjcuOEQDXCxso+W20FEFBVwhd1AhU Fd48R0oBsRErIEcHG55GHlnEOYCNqkGQwCbe/iy/tVH/UdDD3WzvqO+8cur6TveL+2ax SBn3DNIp4bkcGmiLi1mklkjPoomz9C4hKHsDJRpq/3Ezqn/monW8kwpvxsomQ6FN0xdo O96M8K3xVZc0iZH7IkgfkIajLeJHRcPQosNXuqc4CNeWROWDfqnG6h4n7SpersCzOyUj XkUHqeXskHDqR6cEgGtR0ICHwRLZprLDAjfPT0XMi5C9p7YVoSCwl5L6BhOjbieJErj5 jmkw== 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=gXhcLsHhubAVpMUQ90kv6Hjuc7Bg7S0Fz+MLs9jUjSU=; b=ALrMij8e6T7bz2h+tuJMxpVG39MSqLJmhfD6ZNMjgm5MHXkt8pUkx/3+0ml75CmHLb Y804kJaDV90jFa2WZujRYstqxOI4h48Nn+ZllRXo5pu2ZXUbh236jzE3Re1DFVckqQpu vK30seuc10UE3QcgJRd58O3jT2+tXeX+zPkbkz6alY2oyJ+aIP6CAHD2P1xOHUxs3UZH cdLahHVrtMUdyPexprmC5bPtQ4oRsEMmB+iWt5qsHgrrQSihLFlSMLr+fB6NVjUwH7GT n1Tgn0hQBpvA54sL7hjHs6UvbeGDsepY5Bcj7V/AL58KBV/2F69VOnbHTv+g5dN105n+ HwBQ== 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=iki.fi Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id n5si15148824plk.143.2019.12.08.10.39.09; Sun, 08 Dec 2019 10:39:09 -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=iki.fi 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 BDC657FBA6; Sun, 8 Dec 2019 18:39:07 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from sypressi2.dnainternet.net (sypressi2.dnainternet.net [83.102.40.154]) by mail.openembedded.org (Postfix) with ESMTP id 82BAF7F9B4 for ; Sun, 8 Dec 2019 18:39:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by sypressi2.dnainternet.net (Postfix) with ESMTP id BDD801521C; Sun, 8 Dec 2019 20:39:06 +0200 (EET) X-Virus-Scanned: DNA Internet at dnainternet.net X-Spam-Flag: NO X-Spam-Score: 0.653 X-Spam-Level: X-Spam-Status: No, score=0.653 tagged_above=-9999 required=6 tests=[SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from sypressi2.dnainternet.net ([83.102.40.154]) by localhost (sypressi2.dnainternet.net [127.0.0.1]) (DNA Internet, port 10041) with ESMTP id RkP3UPUMV_QH; Sun, 8 Dec 2019 20:39:06 +0200 (EET) Received: from luumupuu2.dnainternet.net (luumupuu2.dnainternet.net [83.102.40.55]) by sypressi2.dnainternet.net (Postfix) with ESMTP id 475A7150DD; Sun, 8 Dec 2019 20:39:06 +0200 (EET) Received: from localhost.localdomain (62-78-161-185.bb.dnainternet.fi [62.78.161.185]) by luumupuu2.dnainternet.net (Postfix) with ESMTP id 78A2D2C61; Sun, 8 Dec 2019 20:39:01 +0200 (EET) From: Niko Mauno To: openembedded-core@lists.openembedded.org Date: Sun, 8 Dec 2019 20:35:49 +0200 Message-Id: <20191208183557.32589-3-niko.mauno@iki.fi> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191208183557.32589-1-niko.mauno@iki.fi> References: <20191208183557.32589-1-niko.mauno@iki.fi> MIME-Version: 1.0 Subject: [OE-core] [thud-next][PATCH 03/11] 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org From: Ross Burton Signed-off-by: Richard Purdie --- meta/classes/cve-check.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 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 f87bcc9dc6..1c8b2223a2 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: