mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 16:52:04 -04:00
[9.20] chg: doc: Make empty changelog fatal error
The prep_doc_mr.py script of the bind9-qa repo needs a way to know that gitchangelog.py did not produce entries. In the case of release notes, it dies with "No commits matching given revlist". For changelog entries it used to warn about "Empty changelog", but did not return non-zero exit code. Backport of MR !10591 Merge branch 'backport-mnowak/make-empty-changelog-fatal-9.20' into 'bind-9.20' See merge request isc-projects/bind9!10641
This commit is contained in:
commit
b5a407b535
1 changed files with 1 additions and 2 deletions
|
|
@ -1889,8 +1889,7 @@ def changelog(
|
|||
try:
|
||||
first_version = next(versions)
|
||||
except StopIteration:
|
||||
warn("Empty changelog. No commits were elected to be used as entry.")
|
||||
data["versions"] = []
|
||||
die("Empty changelog. No commits were elected to be used as entry.")
|
||||
else:
|
||||
data["versions"] = itertools.chain([first_version], versions)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue