Skip to content

Commit

Permalink
bump-version: Allow any urgency level
Browse files Browse the repository at this point in the history
`bump-version.py` expects an urgency level of "low". 8afa9c9 broke
this by using an urgency level of "medium". Relax this condition by
allowing any valid urgency level.

Fixes: 8afa9c9 ("update d/control, d/changelog and switches platform to distro to work on 20.04")
  • Loading branch information
crawfxrd committed Mar 25, 2020
1 parent 87b9640 commit b06a084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bump-version.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def parse_version_line(line):
if ALPHA in line:
raise ValueError('{!r} in current version:\n{!r}'.format(ALPHA, line))
m = re.match(
'^system76-driver \(([\.0-9]+)\) ([a-z]+); urgency=low$', line
'^system76-driver \(([\.0-9]+)\) ([a-z]+); urgency=(low|medium|high|emergency|critical)$', line
)
if m is None:
raise ValueError('bad version line[0]:\n{!r}'.format(line))
Expand Down

0 comments on commit b06a084

Please sign in to comment.