bin/gen_release_notes.py: Return "None" if there are no new features
authorDylan Baker <dylan@pnwbakers.com>
Wed, 9 Oct 2019 17:30:17 +0000 (10:30 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Fri, 25 Oct 2019 22:46:03 +0000 (15:46 -0700)
Which is very likely .Z > 0 releases.

Fixes: 86079447da1e00d49db0cbff9a102eb4e71e8702
       ("scripts: Add a gen_release_notes.py script")
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Juan A. Suarez <jasuarez@igalia.com>
bin/gen_release_notes.py

index b0d4c507252f999bbe4866008be944460a3b4dd5..4ef4facf8731bed1153f50f4505d2863320196fb 100755 (executable)
@@ -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: