aboutsummaryrefslogtreecommitdiffstats
path: root/release.py
diff options
context:
space:
mode:
Diffstat (limited to 'release.py')
-rwxr-xr-xrelease.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/release.py b/release.py
index ec6b0f9b8..a31dc864a 100755
--- a/release.py
+++ b/release.py
@@ -137,19 +137,28 @@ class Project:
def parse_commit(self, ref, author, date, message):
p1 = message.rfind('(')
p2 = message.rfind (')')
- if len(message) - p2 <= 2:
+ if len(message) - p2 <= 2 and \
+ message[p1+1:].find('#') == -1:
author = message[p1+1:p2]
message = message[:p1]
+ print message
+ print message.find('#')
+
msg = message.lower()
- if msg.find('translation') != -1 and\
- msg.find('updated') != -1:
+ if msg.find('translation') != -1 and \
+ (msg.find('added') != -1 or \
+ msg.find('updated') != -1):
self.translations += ' - ' + message + ' (' + author + ').\n'
elif message.find('#') != -1:
+ print message
p1 = message.find('#')
while p1 != -1:
bug = Bug()
- p2 = message.find(' ', p1)
+ p2 = p1 + 1
+ while message[p2].isdigit():
+ p2 = p2 + 1
+ print message[p1+1:p2]
bug.number = message[p1+1:p2]
bug.author = author
self.bug_commits.append(bug)