Skip to content

Commit d3c30cf

Browse files
authored
fix finish_release.py on the 5.2.x point release branch (#10507)
this PR just cherry picks #10503 to the 5.2.x branch in case we need to do a point release to fix #10506 or any other issues
1 parent 1127ac1 commit d3c30cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tools/finish_release.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def get_snap_revisions(snap, channel, version):
107107
print('Getting revision numbers for', snap, version)
108108
cmd = ['snapcraft', 'status', snap]
109109
process = subprocess.run(cmd, check=True, stdout=subprocess.PIPE, universal_newlines=True)
110-
pattern = f'^\\s+{channel}\\s+{version}\\s+(\\d+)\\s*'
110+
pattern = f'\\s+{channel}\\s+{version}\\s+(\\d+)\\s*'
111111
revisions = re.findall(pattern, process.stdout, re.MULTILINE)
112112
assert len(revisions) == SNAP_ARCH_COUNT, f'Unexpected number of snaps found for {channel} {snap} {version} (expected {SNAP_ARCH_COUNT}, found {len(revisions)})'
113113
return revisions

0 commit comments

Comments
 (0)