From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: michael.d.kinney@intel.com) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by groups.io with SMTP; Thu, 04 Apr 2019 15:43:04 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Apr 2019 15:43:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,309,1549958400"; d="scan'208";a="220690640" Received: from unknown (HELO mdkinney-MOBL2.amr.corp.intel.com) ([10.241.98.74]) by orsmga001.jf.intel.com with ESMTP; 04 Apr 2019 15:43:03 -0700 From: "Michael D Kinney" To: devel@edk2.groups.io Cc: Jordan Justen , Bob Feng , Liming Gao , Yonghong Zhu Subject: [Patch] BaseTools/PatchCheck: Generate error if Contributed under found Date: Thu, 4 Apr 2019 15:43:01 -0700 Message-Id: <20190404224301.11360-1-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit https://bugzilla.tianocore.org/show_bug.cgi?id=1655 With the change to BSD+Patent License, the TianoCore Contributor's Agreement has been removed and as a result, a Contributed under tag is no longer appropriate in patches. Remove the check for the TianoCore Contributor's Agreement and instead, generate an error if a patch contains a Contributed under tag in the commit message. Cc: Jordan Justen Cc: Bob Feng Cc: Liming Gao Cc: Yonghong Zhu Signed-off-by: Michael D Kinney --- BaseTools/Scripts/PatchCheck.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/BaseTools/Scripts/PatchCheck.py b/BaseTools/Scripts/PatchCheck.py index 0b580f3b31..19a7159358 100755 --- a/BaseTools/Scripts/PatchCheck.py +++ b/BaseTools/Scripts/PatchCheck.py @@ -1,7 +1,7 @@ ## @file # Check a patch for various format issues # -# Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.
+# Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.
# # This program and the accompanying materials are licensed and made # available under the terms and conditions of the BSD License which @@ -75,13 +75,9 @@ class CommitMessageCheck: count += 1 def check_contributed_under(self): - cu_msg='Contributed-under: TianoCore Contribution Agreement 1.1' - if self.msg.find(cu_msg) < 0: - # Allow 1.0 for now while EDK II community transitions to 1.1 - cu_msg='Contributed-under: TianoCore Contribution Agreement 1.0' - if self.msg.find(cu_msg) < 0: - self.error('Missing Contributed-under! (Note: this must be ' + - 'added by the code contributor!)') + if self.msg.find('Contributed-under') >= 0: + self.error('Contributed-under! (Note: this must be ' + + 'removed by the code contributor!)') @staticmethod def make_signature_re(sig, re_input=False): -- 2.21.0.windows.1