Skip to content

Commit

Permalink
chore: fix daily ppa builds
Browse files Browse the repository at this point in the history
The daily ppa now prepends "1:1+devel-" instead of expecting it in the
changelog already. This script needs to be updated to strip that prefix
when looking at the changelog version.
  • Loading branch information
orndorffgrant authored and lucasmoura committed Jan 10, 2025
1 parent c001b39 commit 0571604
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/check-versions-are-consistent.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@
# GH: 32.3ubuntu1~1.gbp761c11~noble1 -> 32.3
# backports: 32.3~22.04 -> 32.3
# ppa test builds: 32.3~22.04~ppa1 -> 32.3
# devel: 1:1+devel -> 1:1+devel
# daily ppa: 1:1+devel-35-3475~gc001b39f~ubuntu24.10.1 -> 35
#
m = re.match(r"((\d+:\d+\+devel)|\d+(\.\d+)*)", changelog_version)
# focal and earlier don't have `removeprefix`
if changelog_version.startswith("1:1+devel-"):
changelog_version = changelog_version[10:]
m = re.match(r"(\d+(\.\d+)*)", changelog_version)
if m:
base_changelog_version = m.group()
else:
Expand Down

0 comments on commit 0571604

Please sign in to comment.