From: Dodji Seketeli Date: Tue, 18 Nov 2014 14:59:34 +0000 (+0100) Subject: Try harder to remove timezone info from the date X-Git-Tag: 1.0.rc0~434 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=86aa07c5c9f2aa9cfb4fd9684cf9b4ad0becf2e7;p=libabigail.git Try harder to remove timezone info from the date * gen-changelog.py (process_commit): The timezone shit can start either with a '+' or a '-'. Signed-off-by: Dodji Seketeli --- diff --git a/gen-changelog.py b/gen-changelog.py index 832a9ad7..59f6ae18 100644 --- a/gen-changelog.py +++ b/gen-changelog.py @@ -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]