mixlib-install 1.0.11 → 1.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2b2ddb2bee9fa02b5c0835109b73ee0234a5b69f
4
- data.tar.gz: 7b699b07eea1499dff69661e9321ed147eb55312
3
+ metadata.gz: 0472a91eb0523c4a4d71757705485fcc536da342
4
+ data.tar.gz: a93463411cf239b06f9c2cd87cc1bc9a4ff9c98a
5
5
  SHA512:
6
- metadata.gz: 5e659140f51abfdb1c348cb15adacb514bf2aafcfad2d80de79b701fb026fa41a8206b63b48f28c038b51a7f59edcb7f551ea741b00de1cf7a6e38dfee534624
7
- data.tar.gz: f10c4a2d8ae90e47a41c3ccafbd48b727ffe6e8fee49b4c92f90e3500fa8f21136750c2b018803e6a5f0a115d52fcc0bc93b26a8c194dd90ae66e5da3c4797de
6
+ metadata.gz: e2fc4c89038e426cc11f7458f0f508f686ce6e6c55303218ea9435f27b51885cc4e7b8f87c602c331a3d8a980debb51350108fb7b787ba1b19891329639fd2b8
7
+ data.tar.gz: b148002234e2123801d8bd14b878977f49291aed34b557e3a880cab48f2818229dcebfb87ab6839f3fea5fe2e1b31d9e8e47456b7b9e34105906491b2f33fe9f
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ ## [1.0.12]
4
+ - Normalize the architecture detection to return either x86_64, i386 or sparc.
5
+ - Remove the powershell product_name validation to support delivery-cli and push-jobs-client in install.ps1.
6
+ - Retry MSI installation when it fails with 1618 (another installation in progress).
7
+
3
8
  ## [1.0.11]
4
9
  - Add `platform_version_compatibility_mode` option which makes mixlib-install select an artifact built for an earlier version of a platform when set.
5
10
 
@@ -150,6 +150,19 @@ case $platform in
150
150
  ;;
151
151
  esac
152
152
 
153
+ # normalize the architecture we detected
154
+ case $machine in
155
+ "x86_64"|"amd64"|"x64")
156
+ machine="x86_64"
157
+ ;;
158
+ "i386"|"i86pc"|"x86"|"i686")
159
+ machine="i386"
160
+ ;;
161
+ "sparc"|"sun4u"|"sun4v")
162
+ machine="sparc"
163
+ ;;
164
+ esac
165
+
153
166
  if test "x$platform_version" = "x"; then
154
167
  echo "Unable to determine platform version!"
155
168
  report_bug
@@ -19,11 +19,6 @@ function Get-ProjectMetadata {
19
19
  [uri]$base_server_uri = '<%= base_url %>',
20
20
  [string]
21
21
  # Project to install
22
- # chef - Chef Client
23
- # chefdk - Chef Development Kit
24
- # angrychef - AngryChef
25
- # server and container are not valid windows targets
26
- [validateset('chef', 'chefdk', 'angrychef')]
27
22
  [string]
28
23
  $project = 'chef',
29
24
  # Version of the application to install
@@ -19,11 +19,6 @@ function Get-ProjectMetadata {
19
19
  [uri]$base_server_uri = '<%= base_url %>',
20
20
  [string]
21
21
  # Project to install
22
- # chef - Chef Client
23
- # chefdk - Chef Development Kit
24
- # angrychef - AngryChef
25
- # server and container are not valid windows targets
26
- [validateset('chef', 'chefdk', 'angrychef')]
27
22
  [string]
28
23
  $project = 'chef',
29
24
  # Version of the application to install
@@ -16,11 +16,6 @@ function Install-Project {
16
16
  [cmdletbinding(SupportsShouldProcess=$true)]
17
17
  param (
18
18
  # Project to install
19
- # chef - Chef Client
20
- # chefdk - Chef Development Kit
21
- # angrychef - AngryChef
22
- # server and container are not valid windows targets
23
- [validateset('chef', 'chefdk', 'angrychef')]
24
19
  [string]
25
20
  $project = 'chef',
26
21
  # Release channel to install from
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class Install
3
- VERSION = "1.0.11"
3
+ VERSION = "1.0.12"
4
4
  end
5
5
  end
@@ -43,11 +43,20 @@ Function Download-Chef($url, $sha256, $dst) {
43
43
 
44
44
  Function Install-Chef($msi) {
45
45
  Log "Installing Chef Omnibus package $msi"
46
- $p = Start-Process -FilePath "msiexec.exe" -ArgumentList "/qn /i $msi" -Passthru -Wait
47
- $p.WaitForExit()
48
-
49
- if ($p.ExitCode -ne 0) { throw "msiexec was not successful. Received exit code $($p.ExitCode)" }
50
-
46
+ $installingChef = $True
47
+ $installAttempts = 0
48
+ while ($installingChef) {
49
+ $installAttempts++
50
+ $p = Start-Process -FilePath "msiexec.exe" -ArgumentList "/qn /i $msi" -Passthru -Wait
51
+ $p.WaitForExit()
52
+ if ($p.ExitCode -eq 1618) {
53
+ Log "Another msi install is in progress (exit code 1618), retrying ($($installAttempts))..."
54
+ continue
55
+ } elseif ($p.ExitCode -ne 0) {
56
+ throw "msiexec was not successful. Received exit code $($p.ExitCode)"
57
+ }
58
+ $installingChef = $False
59
+ }
51
60
  Remove-Item $msi -Force
52
61
  Log "Installation complete"
53
62
  }
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.11
4
+ version: 1.0.12
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-04-27 00:00:00.000000000 Z
12
+ date: 2016-05-25 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.6.3
225
+ rubygems_version: 2.6.4
226
226
  signing_key:
227
227
  specification_version: 4
228
228
  summary: A mixin to help with omnitruck installs