From c132a30732c8a96161ea5f9503491b1f5ec7a1f9 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sat, 12 Jan 2019 15:34:55 +0000 Subject: [PATCH] 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 --- jeepyb/cmd/update_blueprint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jeepyb/cmd/update_blueprint.py b/jeepyb/cmd/update_blueprint.py index 093e73b..97cf6b2 100644 --- a/jeepyb/cmd/update_blueprint.py +++ b/jeepyb/cmd/update_blueprint.py @@ -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