]> sourceware.org Git - libabigail.git/commitdiff
Try harder to remove timezone info from the date
authorDodji Seketeli <dodji@redhat.com>
Tue, 18 Nov 2014 14:59:34 +0000 (15:59 +0100)
committerDodji Seketeli <dodji@redhat.com>
Tue, 18 Nov 2014 22:18:06 +0000 (23:18 +0100)
* gen-changelog.py (process_commit): The timezone shit can start
either with a '+' or a '-'.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
gen-changelog.py

index 832a9ad7667ef57723a533ba36e7b5c8d6ce6a8c..59f6ae18476d241a696a0f5b6e3e07f6151add6e 100644 (file)
@@ -63,7 +63,7 @@ def process_commit(lines, files):
     fields = top_line.split(' ')
 
     # 1. remove the time and timezone stuff in "2008-05-13 07:10:28 +0000  name"
-    if fields[2].startswith('+'):
+    if fields[2].startswith('+') or fields[2].startswith('-'):
       del fields[2]
     if fields[1][2] == ':' and fields[1][5] == ':':
       del fields[1]
This page took 0.051865 seconds and 5 git commands to generate.