mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-25 00:15:11 +08:00
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>
This commit is contained in:
@@ -60,8 +60,7 @@ Download $externalUrl $internalUrl $package
|
||||
Verify-Checksum $package $sha1
|
||||
Write-Host "Installing $package..."
|
||||
Run-Executable "$package" "/q TargetDir=$install_path"
|
||||
Write-Host "Remove $package..."
|
||||
Remove-Item -Path $package
|
||||
Remove "$package"
|
||||
|
||||
# For cross-compilation we export some helper env variable
|
||||
if (($archVer -eq 32) -And (Is64BitWinHost)) {
|
||||
|
||||
Reference in New Issue
Block a user