patchupdate.py: Allow linking to specific patches.

This commit is contained in:
Zebediah Figura 2018-06-19 16:10:43 -05:00
parent 91b1d2470a
commit 3168a74745

View File

@ -431,9 +431,11 @@ def check_bug_status(all_patches, sync_bugs=False):
bug['resolution'], bug['cf_staged_patchset'])
if sync_bugs:
sync_bug_status(bugtracker, bug, url_map[bug['id']])
patchset = bug['cf_staged_patchset']
if '.patch' in patchset: patchset = patchset[0:patchset.rindex('/')].replace('/blob/','/tree/')
if bug['status'] == 'STAGED' and \
bug['cf_staged_patchset'] != url_map[bug['id']] and \
bug['cf_staged_patchset'] != url_map[bug['id']].replace('github.com/wine-staging','github.com/wine-compholio'):
patchset != url_map[bug['id']] and \
patchset != url_map[bug['id']].replace('github.com/wine-staging','github.com/wine-compholio'):
print 'Invalid staged patchset: #%d - \"%s\" - %s' %(bug['id'], bug['summary'], bug['cf_staged_patchset'])
once = True