[Libreoffice-commits] dev-tools.git: esc-reporting/esc-analyze.py
Shinnok
admin at shinnok.com
Mon Jan 1 18:03:49 UTC 2018
esc-reporting/esc-analyze.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit a2c387c559a25f8ecd8095da35d904acff7da5e9
Author: Shinnok <admin at shinnok.com>
Date: Sat Dec 30 13:42:10 2017 +0100
Rename function for clarity.
Change-Id: I8aca21d7300c1f7c339b09b577d823dda0b71715
Reviewed-on: https://gerrit.libreoffice.org/47192
Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
Tested-by: Michael Meeks <michael.meeks at collabora.com>
diff --git a/esc-reporting/esc-analyze.py b/esc-reporting/esc-analyze.py
index 578e625..4925961 100755
--- a/esc-reporting/esc-analyze.py
+++ b/esc-reporting/esc-analyze.py
@@ -595,7 +595,7 @@ def analyze_esc():
statList['data']['esc']['crashreport'] = crashData['crashreport']['versions']
-def util_is_company_license(email):
+def is_domain_mapped(email):
domainMap = util_load_file(cfg['homedir'] + 'gitdm-config/domain-map', False)
for line in domainMap:
line = line[:-1]
@@ -647,7 +647,7 @@ def analyze_reports():
if row['newestCommit'] > mailedDate\
and row['newestCommit'] < cfg['3monthDate']\
and id not in automateData['reminder']\
- and not util_is_company_license(entry['email']):
+ and not is_domain_mapped(entry['email']):
automateList['mail']['we_miss_you_email'][entry['email']] = entry['name']
automateData['reminder'][id] = automateNow
x = row['commits']['1month']['owner']
@@ -691,7 +691,7 @@ def analyze_reports():
entry['license'] = 'GERRIT NO LICENSE'
statList['reportList']['missing_license'].append(entry)
elif not statList['people'][ownerEmail]['licenseOK']\
- and not util_is_company_license(ownerEmail):
+ and not is_domain_mapped(ownerEmail):
print(ownerEmail)
entry['license'] = 'GERRIT: ' + statList['people'][ownerEmail]['licenseText']
statList['reportList']['missing_license'].append(entry)
More information about the Libreoffice-commits
mailing list