aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2019-07-29 11:22:27 -0700
committerGitHub <noreply@github.com>2019-07-29 11:22:27 -0700
commitfe330fc4ad3b8218a84216a824af7d7007dcb85b (patch)
tree2ebdf7386a1c62ba66ab216ba2505b195a5cda0e /Tools/msi/uploadrelease.ps1
parentAdd additional test for multi-line SyntaxError (GH-15003) (diff)
downloadcpython-fe330fc4ad3b8218a84216a824af7d7007dcb85b.tar.gz
cpython-fe330fc4ad3b8218a84216a824af7d7007dcb85b.tar.bz2
cpython-fe330fc4ad3b8218a84216a824af7d7007dcb85b.zip
Fix publishing of Windows release (GH-15006)
Diffstat (limited to 'Tools/msi/uploadrelease.ps1')
-rw-r--r--Tools/msi/uploadrelease.ps14
1 files changed, 4 insertions, 0 deletions
diff --git a/Tools/msi/uploadrelease.ps1 b/Tools/msi/uploadrelease.ps1
index 469a96818a1..d3673b45829 100644
--- a/Tools/msi/uploadrelease.ps1
+++ b/Tools/msi/uploadrelease.ps1
@@ -92,6 +92,7 @@ if (-not $skipupload) {
& $plink -batch $user@$server chgrp downloads $d
& $plink -batch $user@$server chmod g-x,o+rx $d
& $pscp -batch $chm.FullName "$user@${server}:$d"
+ if (-not $?) { throw "Failed to upload $chm" }
$dirs = gci "$build" -Directory
if ($embed) {
@@ -107,6 +108,7 @@ if (-not $skipupload) {
if ($exe) {
& $pscp -batch $exe.FullName "$user@${server}:$d"
+ if (-not $?) { throw "Failed to upload $exe" }
}
if ($msi) {
@@ -115,6 +117,7 @@ if (-not $skipupload) {
& $plink -batch $user@$server chgrp downloads $sd
& $plink -batch $user@$server chmod g-x,o+rx $sd
& $pscp -batch $msi.FullName "$user@${server}:$sd"
+ if (-not $?) { throw "Failed to upload $msi" }
& $plink -batch $user@$server chgrp downloads $sd*
& $plink -batch $user@$server chmod g-x,o+r $sd*
}
@@ -122,6 +125,7 @@ if (-not $skipupload) {
& $plink -batch $user@$server chgrp downloads $d*
& $plink -batch $user@$server chmod g-x,o+r $d*
+ & $pscp -ls "$user@${server}:$d"
}
if (-not $skippurge) {