diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2009-05-18 19:15:38 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2009-05-18 19:16:21 +0800 |
commit | 518a613ee08adde8b1e9516d9e82e6baa72ec882 (patch) | |
tree | 0e974b7aabee3dcb109390d551121d52f406fd1b /release.py | |
parent | ae394e19d0b012e849dfd913e683f73ef54b8e57 (diff) | |
download | gsoc2013-empathy-518a613ee08adde8b1e9516d9e82e6baa72ec882.tar gsoc2013-empathy-518a613ee08adde8b1e9516d9e82e6baa72ec882.tar.gz gsoc2013-empathy-518a613ee08adde8b1e9516d9e82e6baa72ec882.tar.bz2 gsoc2013-empathy-518a613ee08adde8b1e9516d9e82e6baa72ec882.tar.lz gsoc2013-empathy-518a613ee08adde8b1e9516d9e82e6baa72ec882.tar.xz gsoc2013-empathy-518a613ee08adde8b1e9516d9e82e6baa72ec882.tar.zst gsoc2013-empathy-518a613ee08adde8b1e9516d9e82e6baa72ec882.zip |
Extract date of last tag instead of hardcoding it.
Diffstat (limited to 'release.py')
-rwxr-xr-x | release.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/release.py b/release.py index 967102211..32bad1feb 100755 --- a/release.py +++ b/release.py @@ -5,6 +5,7 @@ import re import urllib import csv import datetime +import time from string import Template from optparse import OptionParser @@ -159,10 +160,18 @@ class Project: self.translations += "Updated %s Translation (%s)\n" % (lang, authors) def get_bugs(self): + commit_str = self.exec_cmd('git show %s' % (self.last_tag)) + for line in commit_str.splitlines(): + if line.startswith('Date:'): + time_str = line[5:line.rfind('+')].strip() + t = time.strptime(time_str) + last_tag_date = time.strftime('%Y-%m-%d', t) + break + query = 'http://bugzilla.gnome.org/buglist.cgi?' \ 'ctype=csv&product=empathy&' \ 'bug_status=RESOLVED,CLOSED,VERIFIED&resolution=FIXED&' \ - 'chfieldfrom=%s&chfieldto=Now' % ('2009-04-13') + 'chfieldfrom=%s&chfieldto=Now' % (last_tag_date) f = urllib.urlopen(query) s = f.read() f.close() |