mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
finish_release.py: fix revision regex, add more logging (#9342)
This commit is contained in:
parent
c599aa08ad
commit
2b1255cd6a
1 changed files with 2 additions and 2 deletions
|
|
@ -130,9 +130,9 @@ def get_snap_revisions(snap, 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+beta\s+{version}\s+(\d+)\s*$'
|
||||
pattern = f'^\s+beta\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 {snap} {version}'
|
||||
assert len(revisions) == SNAP_ARCH_COUNT, f'Unexpected number of snaps found for {snap} {version} (expected {SNAP_ARCH_COUNT}, found {len(revisions)})'
|
||||
return revisions
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue