From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web08.3565.1603329093738561555 for ; Wed, 21 Oct 2020 18:11:34 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Thu, 22 Oct 2020 09:11:29 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , Cc: "'Bob Feng'" , "'Yuwei Chen'" References: <20201020022002.2856-1-fengyunhua@byosoft.com.cn> In-Reply-To: <20201020022002.2856-1-fengyunhua@byosoft.com.cn> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIXSBCYXNlVG9vbHMvRWNjOiBGaXggRUNDIGNoZWNrIE1ldGFGaWxlIENvcHlyaWdodCBpbmZvcm1hdGlvbiBpc3N1ZQ==?= Date: Thu, 22 Oct 2020 09:11:31 +0800 Message-ID: <008901d6a810$46dcb1e0$d49615a0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQHKtYxnKZAhBut/lqrJ3R9hGaJaqam6tVqg Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: bounce+27952+66434+4905953+8761045@groups.io > =B4=FA=B1=ED fengyunhua > =B7=A2=CB=CD=CA=B1=BC=E4: 2020=C4=EA10=D4=C220=C8=D5 10:20 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Bob Feng ; Liming Gao > ; Yuwei Chen > =D6=F7=CC=E2: [edk2-devel] [PATCH] BaseTools/Ecc: Fix ECC check MetaFile= Copyright > information issue >=20 > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3011 >=20 > MetaFile Copyright support below format: >=20 > # Copyright (C) 2020 Hewlett Packard Enterprise Development LP
> # (C) Copyright 2020 Hewlett Packard Enterprise Development LP
>=20 > Cc: Bob Feng > Cc: Liming Gao > Cc: Yuwei Chen > Signed-off-by: Yunhua Feng > --- > BaseTools/Source/Python/Ecc/MetaDataParser.py | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) >=20 > diff --git a/BaseTools/Source/Python/Ecc/MetaDataParser.py > b/BaseTools/Source/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.DOTAL= L) > - if ReIsCopyrightRe.search(LineContent): > + ReIsCopyrightTypeB =3D re.compile(r"""(^|\s)\(C\)\s*COPYRIGHT""", > re.DOTALL) > + if ReIsCopyrightRe.search(LineContent) or > ReIsCopyrightTypeB.search(LineContent): > Result =3D True >=20 > return Result > -- > 2.27.0.windows.1 >=20 >=20 >=20 >=20 >=20 >=20