mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-20 20:06:32 +08:00
Print all error messages during Python provisioning
Print verbose, debugging and error messages to log in case of installer failure. Task-number: QTQAINFRA-3875 Change-Id: I2a701a655bd5e9b434011d3c68a2d8a31e119103 Reviewed-by: Toni Saario <toni.saario@qt.io>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#############################################################################
|
#############################################################################
|
||||||
##
|
##
|
||||||
## Copyright (C) 2019 The Qt Company Ltd.
|
## Copyright (C) 2020 The Qt Company Ltd.
|
||||||
## Contact: http://www.qt.io/licensing/
|
## Contact: http://www.qt.io/licensing/
|
||||||
##
|
##
|
||||||
## This file is part of the provisioning scripts of the Qt Toolkit.
|
## This file is part of the provisioning scripts of the Qt Toolkit.
|
||||||
@@ -55,8 +55,14 @@ Write-Host "Fetching from URL..."
|
|||||||
Download $externalUrl $internalUrl $package
|
Download $externalUrl $internalUrl $package
|
||||||
Verify-Checksum $package $sha1
|
Verify-Checksum $package $sha1
|
||||||
Write-Host "Installing $package..."
|
Write-Host "Installing $package..."
|
||||||
Run-Executable "msiexec" "/passive /i $package TARGETDIR=$targetDir ALLUSERS=1"
|
# /levx = e:'All error messages' v:'Verbose' x:'Extra debugging info'
|
||||||
|
try {
|
||||||
|
Run-Executable "msiexec" "/passive /i $package /levx C:\Windows\Temp\Python_log.log TARGETDIR=$targetDir ALLUSERS=1"
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
Get-Content C:\Windows\Temp\Python_log.log -Tail 50
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
# We need to change allowZip64 from 'False' to 'True' to be able to create ZIP files that use the ZIP64 extensions when the zipfile is larger than 2 GB
|
# We need to change allowZip64 from 'False' to 'True' to be able to create ZIP files that use the ZIP64 extensions when the zipfile is larger than 2 GB
|
||||||
Write-Host "Changing allowZip64 value to 'True'..."
|
Write-Host "Changing allowZip64 value to 'True'..."
|
||||||
(Get-Content $targetDir\lib\zipfile.py) | ForEach-Object { $_ -replace "allowZip64=False", "allowZip64=True" } | Set-Content $targetDir\lib\zipfile.py
|
(Get-Content $targetDir\lib\zipfile.py) | ForEach-Object { $_ -replace "allowZip64=False", "allowZip64=True" } | Set-Content $targetDir\lib\zipfile.py
|
||||||
|
|||||||
Reference in New Issue
Block a user