mixlib-install 3.2.0 → 3.2.1
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 +3 -0
- data/lib/mixlib/install/generator/bourne/scripts/fetch_metadata.sh.erb +22 -17
- 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: ee014f864ec94eca37231b41d5561268d89d2d37
|
|
4
|
+
data.tar.gz: 5eb1f4dbc1b7e3384cafffbd0b8f87ffd7fe60d2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9a80657c8f00dbda9d6bf02e202b829d30c89643b64f7302060204311ba2a51aca6601df8ff94a8520404717f31e5ca9c6a3f9a790823378b6b1001c0a708bc9
|
|
7
|
+
data.tar.gz: 049e19d7e40dbd2daf8e869dc7df3d354a29b4a549912fe0980655d90754d7039e150a650f822775e800f77fc7aa423b1ca400bfdd6db360144bd547c7f5a9d3
|
data/CHANGELOG.md
CHANGED
|
@@ -17,30 +17,35 @@
|
|
|
17
17
|
# $sha256:
|
|
18
18
|
############
|
|
19
19
|
|
|
20
|
-
|
|
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
|
-
|
|
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
|
-
|
|
35
|
-
|
|
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
|
############
|
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.
|
|
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-
|
|
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.
|
|
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
|