mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 13:59:02 -04:00
escape backslashes in format string in finish_release.py (#10043)
(cherry picked from commit 38fc7fcc48)
This commit is contained in:
parent
396b6cce02
commit
a25ef72c4f
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ def get_snap_revisions(snap, channel, version):
|
|||
print('Getting revision numbers for', snap, version)
|
||||
cmd = ['snapcraft', 'status', snap]
|
||||
process = subprocess.run(cmd, check=True, stdout=subprocess.PIPE, universal_newlines=True)
|
||||
pattern = f'^\s+{channel}\s+{version}\s+(\d+)\s*'
|
||||
pattern = f'^\\s+{channel}\\s+{version}\\s+(\\d+)\\s*'
|
||||
revisions = re.findall(pattern, process.stdout, re.MULTILINE)
|
||||
assert len(revisions) == SNAP_ARCH_COUNT, f'Unexpected number of snaps found for {channel} {snap} {version} (expected {SNAP_ARCH_COUNT}, found {len(revisions)})'
|
||||
return revisions
|
||||
|
|
|
|||
Loading…
Reference in a new issue