mixlib-install 1.0.12 → 1.0.13

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: 0472a91eb0523c4a4d71757705485fcc536da342
4
- data.tar.gz: a93463411cf239b06f9c2cd87cc1bc9a4ff9c98a
3
+ metadata.gz: e3f1b2f2f71b83d4fa8db7372c9c9f0fd21767c3
4
+ data.tar.gz: 2a5f4ac5b1d995f2906cf6d89caed7c3e833c090
5
5
  SHA512:
6
- metadata.gz: e2fc4c89038e426cc11f7458f0f508f686ce6e6c55303218ea9435f27b51885cc4e7b8f87c602c331a3d8a980debb51350108fb7b787ba1b19891329639fd2b8
7
- data.tar.gz: b148002234e2123801d8bd14b878977f49291aed34b557e3a880cab48f2818229dcebfb87ab6839f3fea5fe2e1b31d9e8e47456b7b9e34105906491b2f33fe9f
6
+ metadata.gz: 23aea8c3a868d8e2c0a4cf2f93461063c02bdaf9ff280a507d17a4c971c86926adef12d4aa443261bf47f4caa43faa87da50583c23fb488b778e594e45f76cd6
7
+ data.tar.gz: 90f960a001300ede6e90604c19106b38a7d53d559beba6eac44e104c084614566ab2c7a78cfbc76b86553804a4e4089873a32cfae8b7d45813b63076d7090778
@@ -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
- if (((get-wmiobject win32_operatingsystem).osarchitecture -like '64-bit') -and ($channel -like 'current')) {
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
- $p = Start-Process -FilePath "msiexec" -ArgumentList "/qn /i $download_destination" -Passthru -Wait
84
- $p.WaitForExit()
85
- if ($p.ExitCode -ne 0) {
86
- throw "msiexec was not successful. Received exit code $($p.ExitCode)"
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 {
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class Install
3
- VERSION = "1.0.12"
3
+ VERSION = "1.0.13"
4
4
  end
5
5
  end
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.12
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-05-25 00:00:00.000000000 Z
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.6.4
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