[Libreoffice-commits] dev-tools.git: esc-reporting/esc-analyze.py

jan Iversen jani at documentfoundation.org
Tue Nov 15 12:10:51 UTC 2016


 esc-reporting/esc-analyze.py |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 1bd70dd31b2f7d5d510fb6f9a1aee3c7036e7d52
Author: jan Iversen <jani at documentfoundation.org>
Date:   Tue Nov 15 13:09:13 2016 +0100

    update to esc-reporting.
    
    We sometimes pick patches from AOO or committers commit patches directly
    therefore the git.log is also checked for licenses

diff --git a/esc-reporting/esc-analyze.py b/esc-reporting/esc-analyze.py
index 4882962..c5fdfdb 100755
--- a/esc-reporting/esc-analyze.py
+++ b/esc-reporting/esc-analyze.py
@@ -273,6 +273,10 @@ def analyze_mentoring(statList, openhubData, gerritData, gitData, bugzillaData,
       committer = util_check_mail(row['committer'], row['committer-email'], statList, cfg['contributor']['combine-email'])
       statList['people'][author]['isContributor'] = True
       statList['people'][committer]['isContributor'] = True
+      if author in cfg['contributor']['contributors'] or author in cfg['contributor']['license-pending']:
+        statList['people'][author]['hasLicense'] = True
+      if committer in cfg['contributor']['contributors'] or committer in cfg['contributor']['license-pending']:
+        statList['people'][committer]['hasLicense'] = True
 
       for i in author, committer:
         if xDate > statList['people'][i]['newestCommit']:


More information about the Libreoffice-commits mailing list