From 38f77f50e394a727ee7f2912109b11141a7d20fd Mon Sep 17 00:00:00 2001 From: Bill Morris Date: Thu, 25 Jun 2020 09:25:05 +0200 Subject: [PATCH] Enable version specific patches --- bloom/commands/git/release.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bloom/commands/git/release.py b/bloom/commands/git/release.py index cad745c8..3529ba29 100644 --- a/bloom/commands/git/release.py +++ b/bloom/commands/git/release.py @@ -229,7 +229,9 @@ def process_track_settings(track_dict, release_inc_override, interactive=True): settings['release_tag'] = release_tag # Transfer other settings settings['devel_branch'] = track_dict['devel_branch'] - settings['patches'] = track_dict['patches'] or '' + patches = track_dict['patches'] or '' + patches = patches.replace(':{version}', version) + settings['patches'] = patches settings['ros_distro'] = track_dict['ros_distro'] # Release increment if 'last_version' in track_dict and track_dict['last_version'] != version: