diff --git a/automatic/python3/legal/VERIFICATION.txt b/automatic/python3/legal/VERIFICATION.txt index e2f038ede2b..d4eadd03d32 100644 --- a/automatic/python3/legal/VERIFICATION.txt +++ b/automatic/python3/legal/VERIFICATION.txt @@ -22,4 +22,4 @@ and can be verified by doing the following: checksum64: EA5D760B4F7023F5AE60A369674A7E3F9FD2A7561D1D1F901E03F0F80C7C0F9C The file 'LICENSE.txt' has been obtained from Python 3.11 Documentation archive -and can also be found at https://docs.python.org/3.11/license.html. +and can also be found at . diff --git a/automatic/python3/update.ps1 b/automatic/python3/update.ps1 index 129c7080c8d..600f9c217fe 100644 --- a/automatic/python3/update.ps1 +++ b/automatic/python3/update.ps1 @@ -19,7 +19,8 @@ function global:au_SearchReplace { "(?i)(\s+x64:).*" = "`${1} $($Latest.URL64)" "(?i)(checksum32:).*" = "`${1} $($Latest.Checksum32)" "(?i)(checksum64:).*" = "`${1} $($Latest.Checksum64)" - "(?i)(\s*Documentation archive.*)\<.*\>" = "`${1}<$($Latest.ZipUrl)>" + "(?i)3.\d+(\s*Documentation archive\s*)\<.*\>" = "$($Latest.VersionTwoPart)`${1}<$($Latest.ZipUrl)>" + "(?i)(\s*can also be found at\s*)\<.*\>" = "`${1}<$($Latest.LicenseUrl)>" } } } @@ -130,14 +131,15 @@ function GetStreams() { $zip_url = "https://docs.python.org/$versionTwoPart/archives/$zip_name.zip" $license_url = "https://docs.python.org/$versionTwoPart/license.html" $streams[$versionTwoPart] = @{ - URL32 = $urls['86'] - URL64 = $urls['64'] - Version = $version - ZipName = $zip_name - ZipUrl = $zip_url - LicenseUrl = $license_url - PackageName = 'python3' - Title = 'Python 3.x' + URL32 = $urls['86'] + URL64 = $urls['64'] + Version = $version + VersionTwoPart = $versionTwoPart + ZipName = $zip_name + ZipUrl = $zip_url + LicenseUrl = $license_url + PackageName = 'python3' + Title = 'Python 3.x' } $streams["$versionTwoPart-minor"] = $streams[$versionTwoPart].Clone() $streams["$versionTwoPart-minor"]['PackageName'] += $minor_version