post_version.py: stop adding release candidates to the index and relnotes
authorEric Engestrom <eric@engestrom.ch>
Wed, 6 May 2020 22:20:46 +0000 (00:20 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 13 May 2020 21:35:24 +0000 (21:35 +0000)
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2870
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4929>

bin/post_version.py

index 446fae9880b200056ee0747dd404dffeb411cd94..c55309d93870380b42ce9ad51538d307e17e31e5 100755 (executable)
@@ -134,12 +134,16 @@ def main() -> None:
     parser.add_argument('version', help="The released version.")
     args = parser.parse_args()
 
-    update_index(args.version)
-    update_release_notes(args.version)
     update_calendar(args.version)
+    done = 'update calendar'
+
+    if not is_release_candidate(args.version):
+        update_index(args.version)
+        update_release_notes(args.version)
+        done += ', add news item, and link releases notes'
+
     subprocess.run(['git', 'commit', '-m',
-                    'docs: update calendar, add news item, and link releases '
-                    f'notes for {args.version}'])
+                    f'docs: {done} for {args.version}'])
 
 
 if __name__ == "__main__":