cpython: fix changelog anchor for beta versions

This commit is contained in:
Martin Weinelt 2024-06-28 13:19:10 +02:00
parent 89551eddb7
commit 27b67c584a
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -658,7 +658,7 @@ in with passthru; stdenv.mkDerivation (finalAttrs: {
homepage = "https://www.python.org";
changelog = let
majorMinor = versions.majorMinor version;
dashedVersion = replaceStrings [ "." "a" ] [ "-" "-alpha-" ] version;
dashedVersion = replaceStrings [ "." "a" "b" ] [ "-" "-alpha-" "-beta-" ] version;
in
if sourceVersion.suffix == "" then
"https://docs.python.org/release/${version}/whatsnew/changelog.html"