From 8b7cb75730129b02e2c1c57d3c78052b7f4c0e4a Mon Sep 17 00:00:00 2001 From: robmoss2k <15984835+robmoss2k@users.noreply.github.com> Date: Mon, 16 Dec 2024 08:11:50 +0000 Subject: [PATCH] Update Python documentation download logic and adjust version check for minor version --- automatic/python3-streams/update.ps1 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/automatic/python3-streams/update.ps1 b/automatic/python3-streams/update.ps1 index cd0c2ad4ba1..3f43341dca5 100644 --- a/automatic/python3-streams/update.ps1 +++ b/automatic/python3-streams/update.ps1 @@ -37,7 +37,6 @@ function global:au_SearchReplace { function SetCopyright { # download Python documentation archive - Add-Content -Path ".\log.txt" -Value "Downloading $($Latest.ZipUrl)" $webrequest = [System.Net.HttpWebRequest]::Create($Latest.ZipUrl) $response_stream = $webrequest.GetResponse().GetResponseStream() $zip = [IO.Compression.ZipArchive]::new($response_stream) @@ -141,7 +140,7 @@ function GetStreams() { $version = Get-Version $latest_version $urls = $all_versions[$latest_version] - if ($minor_version -le '12') { + if ($minor_version -le '11') { $zip_name = "python-$latest_version-docs-text" } else { $zip_name = "python-$versionTwoPart-docs-text"