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

Xisco Fauli anistenis at gmail.com
Mon Jul 24 14:51:31 UTC 2017


 esc-reporting/qa-tools.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 90373da32b2e7582fa66f7cbfe611e8dd6cf4ebc
Author: Xisco Fauli <anistenis at gmail.com>
Date:   Mon Jul 24 16:50:36 2017 +0200

    QA Tools: Omit last digit of the version

diff --git a/esc-reporting/qa-tools.py b/esc-reporting/qa-tools.py
index 055d700..8513254 100755
--- a/esc-reporting/qa-tools.py
+++ b/esc-reporting/qa-tools.py
@@ -346,14 +346,14 @@ def analyze_bugzilla(statList, bugzillaData, cfg):
                             elif addedVersion == 'Inherited From OOo':
                                 addedVersion = 0
                             else:
-                                addedVersion = int(''.join([s for s in re.split('\.|\s',addedVersion) if s.isdigit()]).ljust(4, '0'))
+                                addedVersion = int(''.join([s for s in re.split('\.|\s',addedVersion) if s.isdigit()]).ljust(3, '0')[:3] )
 
                             if removedVersion == 'unspecified':
                                 removedVersion = 999999
                             elif removedVersion == 'Inherited From OOo':
                                 removedVersion = 0
                             else:
-                                removedVersion = int(''.join([s for s in re.split('\.|\s',removedVersion) if s.isdigit()]).ljust(4, '0'))
+                                removedVersion = int(''.join([s for s in re.split('\.|\s',removedVersion) if s.isdigit()]).ljust(3, '0')[:3] )
 
                             if removedVersion < oldestVersion:
                                 oldestVersion = removedVersion


More information about the Libreoffice-commits mailing list