mixlib-install 1.0.12 → 1.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/mixlib/install/generator/powershell/scripts/get_project_metadata.ps1.erb +1 -6
- data/lib/mixlib/install/generator/powershell/scripts/helpers.ps1 +6 -0
- data/lib/mixlib/install/generator/powershell/scripts/install_project.ps1 +12 -4
- data/lib/mixlib/install/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3f1b2f2f71b83d4fa8db7372c9c9f0fd21767c3
|
4
|
+
data.tar.gz: 2a5f4ac5b1d995f2906cf6d89caed7c3e833c090
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23aea8c3a868d8e2c0a4cf2f93461063c02bdaf9ff280a507d17a4c971c86926adef12d4aa443261bf47f4caa43faa87da50583c23fb488b778e594e45f76cd6
|
7
|
+
data.tar.gz: 90f960a001300ede6e90604c19106b38a7d53d559beba6eac44e104c084614566ab2c7a78cfbc76b86553804a4e4089873a32cfae8b7d45813b63076d7090778
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [1.0.13]
|
4
|
+
- Fix Windows architecture detection for stable channel
|
5
|
+
- Added support for retrying project msi installation for exit code 1618 (another installation is in progress)
|
6
|
+
|
3
7
|
## [1.0.12]
|
4
8
|
- Normalize the architecture detection to return either x86_64, i386 or sparc.
|
5
9
|
- Remove the powershell product_name validation to support delivery-cli and push-jobs-client in install.ps1.
|
@@ -53,13 +53,8 @@ function Get-ProjectMetadata {
|
|
53
53
|
$platform_version = Get-PlatformVersion
|
54
54
|
Write-Verbose "Platform Version: $platform_version"
|
55
55
|
|
56
|
-
# Custom architecture detection based on channel
|
57
56
|
if ($architecture -eq 'auto') {
|
58
|
-
|
59
|
-
$architecture = 'x86_64'
|
60
|
-
} else {
|
61
|
-
$architecture = 'i386'
|
62
|
-
}
|
57
|
+
$architecture = Get-PlatformArchitecture
|
63
58
|
}
|
64
59
|
|
65
60
|
Write-Verbose "Architecture: $architecture"
|
@@ -21,7 +21,13 @@ function Get-PlatformArchitecture {
|
|
21
21
|
function New-Uri {
|
22
22
|
param ($baseuri, $newuri)
|
23
23
|
|
24
|
+
try {
|
24
25
|
new-object System.Uri $baseuri, $newuri
|
26
|
+
}
|
27
|
+
catch [System.Management.Automation.MethodInvocationException]{
|
28
|
+
Write-Error "$($_.exception.message)"
|
29
|
+
throw $_.exception
|
30
|
+
}
|
25
31
|
}
|
26
32
|
|
27
33
|
function Get-WebContent {
|
@@ -80,10 +80,18 @@ function Install-Project {
|
|
80
80
|
if ($pscmdlet.ShouldProcess("$download_destination", "Installing")){
|
81
81
|
if (Test-ProjectPackage -Path $download_destination -Algorithm 'SHA256' -Hash $package_metadata.sha256) {
|
82
82
|
Write-Host "Installing $project from $download_destination"
|
83
|
-
$
|
84
|
-
$
|
85
|
-
|
86
|
-
|
83
|
+
$installingProject = $True
|
84
|
+
$installAttempts = 0
|
85
|
+
while ($installingProject) {
|
86
|
+
$p = Start-Process -FilePath "msiexec" -ArgumentList "/qn /i $download_destination" -Passthru -Wait
|
87
|
+
$p.WaitForExit()
|
88
|
+
if ($p.ExitCode -eq 1618) {
|
89
|
+
Write-Host "Another msi install is in progress (exit code 1618), retrying ($($installAttempts))..."
|
90
|
+
continue
|
91
|
+
} elseif ($p.ExitCode -ne 0) {
|
92
|
+
throw "msiexec was not successful. Received exit code $($p.ExitCode)"
|
93
|
+
}
|
94
|
+
$installingProject = $False
|
87
95
|
}
|
88
96
|
}
|
89
97
|
else {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mixlib-install
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thom May
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-06-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: artifactory
|
@@ -222,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
222
222
|
version: '0'
|
223
223
|
requirements: []
|
224
224
|
rubyforge_project:
|
225
|
-
rubygems_version: 2.
|
225
|
+
rubygems_version: 2.4.5.1
|
226
226
|
signing_key:
|
227
227
|
specification_version: 4
|
228
228
|
summary: A mixin to help with omnitruck installs
|