Correct blueprint topic links for modern Gerrit

The Gerrit query URL pattern has changed, so correct how we form it
in the update_blueprint hook to match expectations of current Gerrit
versions.

Change-Id: I368d0d30451051ab88a7b07dc6a2fbe7c4ddb886
This commit is contained in:
Jeremy Stanley 2019-01-12 15:34:55 +00:00 committed by Joshua Hesketh
parent dcd2739069
commit c132a30732
1 changed files with 2 additions and 2 deletions

View File

@ -89,8 +89,8 @@ def update_spec(launchpad, project, name, subject, link, topic=None):
wb = ''
changed = False
if topic:
topiclink = '%s/#q,topic:%s,n,z' % (link[:link.find('/', 8)],
topic)
topiclink = '%s/#/q/topic:%s' % (link[:link.find('/', 8)],
topic)
if topiclink not in wb:
wb += "\n\n\nGerrit topic: %(link)s" % dict(link=topiclink)
changed = True