Skip to content

Commit

Permalink
bugzilla-close-candidate.py: Fix sorting of branches.
Browse files Browse the repository at this point in the history
Pushed to master.

maintainer-scripts/ChangeLog:

	* bugzilla-close-candidate.py: Fix sorting of branches.
  • Loading branch information
marxin committed May 29, 2020
1 parent bd4291a commit 5e54b01
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions maintainer-scripts/bugzilla-close-candidate.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,10 @@ def search():
if skip:
continue

branches = get_branches_by_comments(comments)
if len(branches):
branches_str = ','.join(sorted(list(branches)))
branches = sorted(list(get_branches_by_comments(comments)),
key=lambda b: 999 if b is 'master' else int(b))
if branches:
branches_str = ','.join(branches)
print('%-30s%-30s%-40s%-40s%-60s' % ('https://gcc.gnu.org/PR%d' % id, branches_str, fail, work, b['summary']), flush=True)
ids.append(id)

Expand Down

0 comments on commit 5e54b01

Please sign in to comment.