From: Dylan Baker Date: Wed, 9 Oct 2019 17:30:17 +0000 (-0700) Subject: bin/gen_release_notes.py: Return "None" if there are no new features X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6d41e7f0b0c998d9b6f4b1ff55eab9f6cd12ef4;p=mesa.git bin/gen_release_notes.py: Return "None" if there are no new features Which is very likely .Z > 0 releases. Fixes: 86079447da1e00d49db0cbff9a102eb4e71e8702 ("scripts: Add a gen_release_notes.py script") Reviewed-by: Eric Engestrom Reviewed-by: Juan A. Suarez --- diff --git a/bin/gen_release_notes.py b/bin/gen_release_notes.py index b0d4c507252..4ef4facf873 100755 --- a/bin/gen_release_notes.py +++ b/bin/gen_release_notes.py @@ -224,6 +224,8 @@ def get_features() -> typing.Generator[str, None, None]: with p.open('rt') as f: for line in f: yield line + else: + yield "None" async def main() -> None: