else:
combo = '__mainline__'
else:
- if combo not in keys:
- keys.append(combo)
+ if entry.get('subject', "") == 'UBUNTU: link-to-tracker: update tracking bug':
+ # Construct a key with '__trackingbug__' on the first position
+ # and the tracking bug number afterwards
+ combo.insert(0, '__trackingbug__')
+ # Tracking bug goes at the top
+ keys.insert(0, combo)
+ else:
+ if combo not in keys:
+ keys.append(combo)
entry['key'] = combo
entries.append(entry)
-
# Suck up the git log output and extract the information we need.
keys = []
entry = None
for bug in key:
if bug.startswith('CVE-'):
title_set.append(bug)
+ elif bug == '__trackingbug__':
+ # Look for the tracking bug number on the second
+ # position of the key
+ continue
else:
bug_info = None
emit_title = False
- title_lines = textwrap.wrap(entry['subject'], 76)
- print(' - ' + title_lines[0])
- for line in title_lines[1:]:
- line = line.replace('LP###', 'LP: #')
- print(' ' + line)
+ if key[0] != '__trackingbug__':
+ title_lines = textwrap.wrap(entry['subject'], 76)
+ print(' - ' + title_lines[0])
+ for line in title_lines[1:]:
+ line = line.replace('LP###', 'LP: #')
+ print(' ' + line)