From nobody Mon Nov 25 17:49:20 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+66434+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+66434+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1603160461; cv=none; d=zohomail.com; s=zohoarc; b=EIcqSrn/ukjzuZPeAN+oIuaRRafQAb0xJ/iIFd5hWvDuob45DmqkaoyY+C7neMYzx4lVzUUi/vW3kglYQjg31M1LOaMHLJP6tA/e8HosMqXeSGPm30Nl9JCd27AwgkjbMshfFhv6ET69Ct10WmE9beIP8mxS4G9ggYvWBagRTXc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1603160461; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=CcPC2twO4+HE4bRIkCp53awlrcpNSyoxWIP9ARke7Ac=; b=N0jiJh02vCX2i9jadgl/A2o8jRv152yzYVzDgZexWyCKEq7DTccLxJQiIG1HMDEWgRu4223QPluu0RJBYdeUQbBVhacmiYw8/Xpt3zqjBnO7hKuxcSI7iiFxl0vVqlQmj+uGQ7olUWDhslJgGiXUlbRRXG5hPaOUeeWGmqjj0RY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+66434+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 16031604617421006.9726252418005; Mon, 19 Oct 2020 19:21:01 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id JnNfYY1788612xHRHrxZxSS5; Mon, 19 Oct 2020 19:21:01 -0700 X-Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web12.10878.1603160459977866613 for ; Mon, 19 Oct 2020 19:21:00 -0700 X-Received: from localhost.localdomain ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Tue, 20 Oct 2020 10:20:56 +0800 X-WM-Sender: fengyunhua@byosoft.com.cn From: "fengyunhua" To: devel@edk2.groups.io Cc: Bob Feng , Liming Gao , Yuwei Chen Subject: [edk2-devel] [PATCH] BaseTools/Ecc: Fix ECC check MetaFile Copyright information issue Date: Tue, 20 Oct 2020 10:20:02 +0800 Message-Id: <20201020022002.2856-1-fengyunhua@byosoft.com.cn> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,fengyunhua@byosoft.com.cn X-Gm-Message-State: dN9ibS7E8VPeWXuqfAp3qZ38x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1603160461; bh=pJ5IuwfKyco5Mb3NJVZ52t48YnTB9ladbkXppBsirdY=; h=Cc:Date:From:Reply-To:Subject:To; b=CYZrE+aVcodp9q4yA2ggsNTEm9yf2IBaxxso8zkj/ob/Qd6ynNtglwkYfDyDCR+2h61 8oRVjDKx/EbgUs1Tk1kmAq0hKFL+Xmp2XmiTAl9t695Y7qXoJbfZO3Ljo4Gb0XZ9E/8Ng ZJ7CZsk/6Z8f2/WP/h3BUmkJRh/ZCZaUlQQ= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3011 MetaFile Copyright support below format: # Copyright (C) 2020 Hewlett Packard Enterprise Development LP
# (C) Copyright 2020 Hewlett Packard Enterprise Development LP
Cc: Bob Feng Cc: Liming Gao Cc: Yuwei Chen Signed-off-by: Yunhua Feng Reviewed-by: Liming Gao --- BaseTools/Source/Python/Ecc/MetaDataParser.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BaseTools/Source/Python/Ecc/MetaDataParser.py b/BaseTools/Sour= ce/Python/Ecc/MetaDataParser.py index 0fd9b6c4e3..d9f0da1ee0 100644 --- a/BaseTools/Source/Python/Ecc/MetaDataParser.py +++ b/BaseTools/Source/Python/Ecc/MetaDataParser.py @@ -214,8 +214,12 @@ def _IsCopyrightLine (LineContent): LineContent =3D LineContent.upper() Result =3D False =20 + #Support below Copyright format + # Copyright (C) 2020 Hewlett Packard Enterprise Development LP
+ # (C) Copyright 2020 Hewlett Packard Enterprise Development LP
ReIsCopyrightRe =3D re.compile(r"""(^|\s)COPYRIGHT *\(""", re.DOTALL) - if ReIsCopyrightRe.search(LineContent): + ReIsCopyrightTypeB =3D re.compile(r"""(^|\s)\(C\)\s*COPYRIGHT""", re.D= OTALL) + if ReIsCopyrightRe.search(LineContent) or ReIsCopyrightTypeB.search(Li= neContent): Result =3D True =20 return Result --=20 2.27.0.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#66434): https://edk2.groups.io/g/devel/message/66434 Mute This Topic: https://groups.io/mt/77674083/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-