]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-41492: Fixes the description appearing in UAC prompts on Windows (GH-21754)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 6 Aug 2020 16:52:57 +0000 (09:52 -0700)
committerGitHub <noreply@github.com>
Thu, 6 Aug 2020 16:52:57 +0000 (09:52 -0700)
(cherry picked from commit 777b611c8c5676b80898a429f71d28e59bddc49d)

Co-authored-by: Steve Dower <steve.dower@python.org>
.azure-pipelines/windows-release/msi-steps.yml
.azure-pipelines/windows-release/stage-pack-msix.yml
.azure-pipelines/windows-release/stage-sign.yml
Misc/NEWS.d/next/Windows/2020-08-06-16-59-10.bpo-41492.2FQ9cM.rst [new file with mode: 0644]

index a460eb1bac8fe5dd8f51ae833fa43a51efb2393b..307510a40dd4e50d4aa9580fb3781b2e8136854d 100644 (file)
@@ -1,6 +1,12 @@
 steps:
   - template: ./checkout.yml
 
+  - powershell: |
+      $d = (.\PCbuild\build.bat -V) | %{ if($_ -match '\s+(\w+):\s*(.+)\s*$') { @{$Matches[1] = $Matches[2];} }};
+      Write-Host "##vso[task.setvariable variable=SigningDescription]Python $($d.PythonVersion)"
+    displayName: 'Update signing description'
+    condition: and(succeeded(), not(variables['SigningDescription']))
+
   - task: DownloadPipelineArtifact@1
     displayName: 'Download artifact: doc'
     inputs:
index 07e343a0b4e0c7886684b8aa8f1ffa8dcb29229c..26a5712e845ca9ebd1b1fdc5035510b93d9075e8 100644 (file)
@@ -105,9 +105,15 @@ jobs:
     clean: all
 
   steps:
-  - checkout: none
+  - template: ./checkout.yml
   - template: ./find-sdk.yml
 
+  - powershell: |
+      $d = (.\PCbuild\build.bat -V) | %{ if($_ -match '\s+(\w+):\s*(.+)\s*$') { @{$Matches[1] = $Matches[2];} }};
+      Write-Host "##vso[task.setvariable variable=SigningDescription]Python $($d.PythonVersion)"
+    displayName: 'Update signing description'
+    condition: and(succeeded(), not(variables['SigningDescription']))
+
   - task: DownloadBuildArtifacts@0
     displayName: 'Download Artifact: unsigned_msix'
     inputs:
index 4d757ae8fca0325e3576a98da55ffac237238557..584772af8b428e981ab30e0129ef6c48717414c4 100644 (file)
@@ -26,6 +26,12 @@ jobs:
   - template: ./checkout.yml
   - template: ./find-sdk.yml
 
+  - powershell: |
+      $d = (.\PCbuild\build.bat -V) | %{ if($_ -match '\s+(\w+):\s*(.+)\s*$') { @{$Matches[1] = $Matches[2];} }};
+      Write-Host "##vso[task.setvariable variable=SigningDescription]Python $($d.PythonVersion)"
+    displayName: 'Update signing description'
+    condition: and(succeeded(), not(variables['SigningDescription']))
+
   - powershell: |
       Write-Host "##vso[build.addbuildtag]signed"
     displayName: 'Add build tags'
diff --git a/Misc/NEWS.d/next/Windows/2020-08-06-16-59-10.bpo-41492.2FQ9cM.rst b/Misc/NEWS.d/next/Windows/2020-08-06-16-59-10.bpo-41492.2FQ9cM.rst
new file mode 100644 (file)
index 0000000..065803e
--- /dev/null
@@ -0,0 +1 @@
+Fixes the description that appears in UAC prompts.