mixlib-install 3.2.0 → 3.2.1

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: e766479dca9a2bb0dbdfc558b76d0e291580ed9e
4
- data.tar.gz: bf3a9b004e84d76307c1bcfb7826b9166eecab47
3
+ metadata.gz: ee014f864ec94eca37231b41d5561268d89d2d37
4
+ data.tar.gz: 5eb1f4dbc1b7e3384cafffbd0b8f87ffd7fe60d2
5
5
  SHA512:
6
- metadata.gz: 6d97cf66c06b5f551ce3ea799a49544ff311b9f2aac37914926dc79761dc0aa9f9a0bdb9ec6b76a18ddabcd9b8f6ba743a17c4e04958486f2f668e9077204b09
7
- data.tar.gz: a34a4378b3083182b156b1489abd5964cad41b5566f56219fa151136ea34385c9aa12e9200ea24181f7de63e681dcc4bb91a9aeb171ad0d993ec51f8dee0b79c
6
+ metadata.gz: 9a80657c8f00dbda9d6bf02e202b829d30c89643b64f7302060204311ba2a51aca6601df8ff94a8520404717f31e5ca9c6a3f9a790823378b6b1001c0a708bc9
7
+ data.tar.gz: 049e19d7e40dbd2daf8e869dc7df3d354a29b4a549912fe0980655d90754d7039e150a650f822775e800f77fc7aa423b1ca400bfdd6db360144bd547c7f5a9d3
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ ## [3.2.1]
4
+ - Add support for direct URL downloads for Bourne install script
5
+
3
6
  ## [3.2.0]
4
7
  - Add support for partial product versioning support ("11", 12", "12.1", etc.)
5
8
  - Refactor and expose `#normalize_architecture`
@@ -17,30 +17,35 @@
17
17
  # $sha256:
18
18
  ############
19
19
 
20
- echo "Getting information for $project $channel $version for $platform..."
20
+ if test "x$download_url_override" = "x"; then
21
+ echo "Getting information for $project $channel $version for $platform..."
21
22
 
22
- metadata_filename="$tmp_dir/metadata.txt"
23
- metadata_url="<%= base_url %>/$channel/$project/metadata?v=$version&p=$platform&pv=$platform_version&m=$machine"
23
+ metadata_filename="$tmp_dir/metadata.txt"
24
+ metadata_url="<%= base_url %>/$channel/$project/metadata?v=$version&p=$platform&pv=$platform_version&m=$machine"
24
25
 
25
- do_download "$metadata_url" "$metadata_filename"
26
+ do_download "$metadata_url" "$metadata_filename"
26
27
 
27
- cat "$metadata_filename"
28
+ cat "$metadata_filename"
28
29
 
29
- echo ""
30
- # check that all the mandatory fields in the downloaded metadata are there
31
- if grep '^url' $metadata_filename > /dev/null && grep '^sha256' $metadata_filename > /dev/null; then
32
- echo "downloaded metadata file looks valid..."
30
+ echo ""
31
+ # check that all the mandatory fields in the downloaded metadata are there
32
+ if grep '^url' $metadata_filename > /dev/null && grep '^sha256' $metadata_filename > /dev/null; then
33
+ echo "downloaded metadata file looks valid..."
34
+ else
35
+ echo "downloaded metadata file is corrupted or an uncaught error was encountered in downloading the file..."
36
+ # this generally means one of the download methods downloaded a 404 or something like that and then reported a successful exit code,
37
+ # and this should be fixed in the function that was doing the download.
38
+ report_bug
39
+ exit 1
40
+ fi
41
+
42
+ download_url=`awk '$1 == "url" { print $2 }' "$metadata_filename"`
43
+ sha256=`awk '$1 == "sha256" { print $2 }' "$metadata_filename"`
33
44
  else
34
- echo "downloaded metadata file is corrupted or an uncaught error was encountered in downloading the file..."
35
- # this generally means one of the download methods downloaded a 404 or something like that and then reported a successful exit code,
36
- # and this should be fixed in the function that was doing the download.
37
- report_bug
38
- exit 1
45
+ download_url=$download_url_override
46
+ sha256=$checksum
39
47
  fi
40
48
 
41
- download_url=`awk '$1 == "url" { print $2 }' "$metadata_filename"`
42
- sha256=`awk '$1 == "sha256" { print $2 }' "$metadata_filename"`
43
-
44
49
  ############
45
50
  # end of fetch_metadata.sh
46
51
  ############
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class Install
3
- VERSION = "3.2.0"
3
+ VERSION = "3.2.1"
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: 3.2.0
4
+ version: 3.2.1
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: 2017-04-13 00:00:00.000000000 Z
12
+ date: 2017-05-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mixlib-shellout
@@ -305,7 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
305
305
  version: '0'
306
306
  requirements: []
307
307
  rubyforge_project:
308
- rubygems_version: 2.5.1
308
+ rubygems_version: 2.6.11
309
309
  signing_key:
310
310
  specification_version: 4
311
311
  summary: A library for interacting with Chef Software Inc's software distribution