aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/windows/install-breakpad.ps1
diff options
context:
space:
mode:
authorHeikki Halmet <heikki.halmet@qt.io>2019-11-19 10:13:21 +0200
committerHeikki Halmet <heikki.halmet@qt.io>2020-11-21 10:35:55 +0200
commit4a37ec2dd54740463e6d0b540eaa243aeea7184f (patch)
tree18d2812c19f49f481881452326d295be537960db /coin/provisioning/common/windows/install-breakpad.ps1
parented8cddd726f4695d5022d23949ee39c57b21a210 (diff)
Provisioning: Use Remove function when removing items in Windows
Sometimes items are locked by some windows process so that they can't be removed. This will fail provisioning instantly. Let's give the removing process more time by retrying if it will fail on first attempt Change-Id: Ic5c16c0d920ed0625d0c6830323d0bc6ba2cd608 Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
Diffstat (limited to 'coin/provisioning/common/windows/install-breakpad.ps1')
-rw-r--r--coin/provisioning/common/windows/install-breakpad.ps14
1 files changed, 2 insertions, 2 deletions
diff --git a/coin/provisioning/common/windows/install-breakpad.ps1 b/coin/provisioning/common/windows/install-breakpad.ps1
index 7db6d8ac..9e90f858 100644
--- a/coin/provisioning/common/windows/install-breakpad.ps1
+++ b/coin/provisioning/common/windows/install-breakpad.ps1
@@ -67,14 +67,14 @@ try {
Download $breakpad_tar_url $breakpad_tar_url $targetBreakpad
Verify-Checksum $targetBreakpad $breakpad_tar_sha
Extract-tar_gz $targetBreakpad $installFolder
- Remove-Item -Path $targetBreakpad
+ Remove "$targetBreakpad"
# linux-syscall-support
Download $linux_syscall_support_tar_url $linux_syscall_support_tar_url $targetSyscall
Verify-Checksum $targetSyscall $linux_syscall_support_tar_sha
Extract-tar_gz $targetSyscall "$env:tmp\"
New-Item -ItemType directory -Path "$installFolder\breakpad\third_party\lss"
Get-ChildItem -Path "$env:tmp\linux-syscall-support\*" -Recurse | Move-Item -Destination "$installFolder\breakpad\third_party\lss"
- Remove-Item -Path $targetSyscall
+ Remove "$targetSyscall"
}
catch {
Write-Host "Cached download failed: Attempping fallback method eg git."