mixlib-install 3.11.12 → 3.11.18
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e424fad8fbaf51b22e62040bdd6be52527b3ac3b89c208d9d489b49d0754b20d
|
4
|
+
data.tar.gz: a92e4226ccf717351fd23bd780a76b80cb8242ea9c5f0b527fab01b16c1f1eb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b66fe6f554472dafacecf28241329d745a6a2f1ecd4e75c74a32e6a0ab157129d6fcaa4c0b52a5c0d3e00a20c95f21b58307da603a7f943ff8bf7afa91c594f
|
7
|
+
data.tar.gz: 1a005bbba9a9c5e121e6bb8b9919f1880b92972aaebe7e613605846ca11c1f3271aefeef57959f79a0e56de7fbc5583a71bdc23a1f64d1a0dbc17c57ba39cf07
|
data/Gemfile
CHANGED
@@ -25,7 +25,7 @@
|
|
25
25
|
machine=`uname -m`
|
26
26
|
os=`uname -s`
|
27
27
|
|
28
|
-
if test -f "/etc/lsb-release" && grep
|
28
|
+
if test -f "/etc/lsb-release" && grep DISTRIB_ID /etc/lsb-release >/dev/null && ! grep wrlinux /etc/lsb-release >/dev/null; then
|
29
29
|
platform=`grep DISTRIB_ID /etc/lsb-release | cut -d "=" -f 2 | tr '[A-Z]' '[a-z]'`
|
30
30
|
platform_version=`grep DISTRIB_RELEASE /etc/lsb-release | cut -d "=" -f 2`
|
31
31
|
|
@@ -84,7 +84,7 @@ elif test -f "/usr/bin/sw_vers"; then
|
|
84
84
|
fi
|
85
85
|
elif test -f "/etc/release"; then
|
86
86
|
machine=`/usr/bin/uname -p`
|
87
|
-
if grep
|
87
|
+
if grep SmartOS /etc/release >/dev/null; then
|
88
88
|
platform="smartos"
|
89
89
|
platform_version=`grep ^Image /etc/product | awk '{ print $3 }'`
|
90
90
|
else
|
@@ -92,7 +92,7 @@ elif test -f "/etc/release"; then
|
|
92
92
|
platform_version=`/usr/bin/uname -r`
|
93
93
|
fi
|
94
94
|
elif test -f "/etc/SuSE-release"; then
|
95
|
-
if grep
|
95
|
+
if grep 'Enterprise' /etc/SuSE-release >/dev/null;
|
96
96
|
then
|
97
97
|
platform="sles"
|
98
98
|
platform_version=`awk '/^VERSION/ {V = $3}; /^PATCHLEVEL/ {P = $3}; END {print V "." P}' /etc/SuSE-release`
|
@@ -5,24 +5,32 @@
|
|
5
5
|
|
6
6
|
if test "x$https_proxy" != "x"; then
|
7
7
|
echo "setting https_proxy: $https_proxy"
|
8
|
-
|
9
|
-
|
8
|
+
HTTPS_PROXY=$https_proxy
|
9
|
+
https_proxy=$https_proxy
|
10
|
+
export HTTPS_PROXY
|
11
|
+
export https_proxy
|
10
12
|
fi
|
11
13
|
|
12
14
|
if test "x$http_proxy" != "x"; then
|
13
15
|
echo "setting http_proxy: $http_proxy"
|
14
|
-
|
15
|
-
|
16
|
+
HTTP_PROXY=$http_proxy
|
17
|
+
http_proxy=$http_proxy
|
18
|
+
export HTTP_PROXY
|
19
|
+
export http_proxy
|
16
20
|
fi
|
17
21
|
|
18
22
|
if test "x$ftp_proxy" != "x"; then
|
19
23
|
echo "setting ftp_proxy: $ftp_proxy"
|
20
|
-
|
21
|
-
|
24
|
+
FTP_PROXY=$ftp_proxy
|
25
|
+
ftp_proxy=$ftp_proxy
|
26
|
+
export FTP_PROXY
|
27
|
+
export ftp_proxy
|
22
28
|
fi
|
23
29
|
|
24
30
|
if test "x$no_proxy" != "x"; then
|
25
31
|
echo "setting no_proxy: $no_proxy"
|
26
|
-
|
27
|
-
|
32
|
+
NO_PROXY=$no_proxy
|
33
|
+
no_proxy=$no_proxy
|
34
|
+
export NO_PROXY
|
35
|
+
export no_proxy
|
28
36
|
fi
|
data/lib/mixlib/install/util.rb
CHANGED
@@ -66,10 +66,13 @@ module Mixlib
|
|
66
66
|
env << Util.shell_env_var("https_proxy", opts[:https_proxy], powershell)
|
67
67
|
env << Util.shell_env_var("HTTPS_PROXY", opts[:https_proxy], powershell)
|
68
68
|
end
|
69
|
+
unless env.empty?
|
70
|
+
code = env.join("\n").concat("\n").concat(code)
|
71
|
+
end
|
69
72
|
if powershell
|
70
|
-
|
73
|
+
"\n" + code
|
71
74
|
else
|
72
|
-
Util.wrap_command(
|
75
|
+
Util.wrap_command(code)
|
73
76
|
end
|
74
77
|
end
|
75
78
|
|
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.11.
|
4
|
+
version: 3.11.18
|
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: 2019-
|
12
|
+
date: 2019-05-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mixlib-shellout
|