luban 0.7.13 → 0.7.14
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8705574f5dd90fa9aeb2abfccca62ba8265888c
|
4
|
+
data.tar.gz: 941c5a77e586b223dca0f4b3b2125ca6c605e8ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 001743da2f85e5a6ac9512cefa2597090e2308b8598413420171e34f5325d4c458220dfcdbf6ed37634e85a249d3989183e38b4c3b19e1e0e81082c342eaff87
|
7
|
+
data.tar.gz: fe628c4325aab213092b8615fd4afbaf565d12e37d1b89272eb3172d855e445ebf28190f4680bbfb31c2674a5b23a4ff1588621309f599926097752d8aa50338
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
# Change log
|
2
2
|
|
3
|
-
## Version 0.7.
|
3
|
+
## Version 0.7.14 (Sept 06, 2016)
|
4
|
+
|
5
|
+
Minor enhancements:
|
6
|
+
* Properly handled different download URL for recent/old releases of OpenSSL
|
7
|
+
|
8
|
+
Bug fixes:
|
9
|
+
* Checked if a given package is downloaded first before installing the package
|
10
|
+
* Checked the existence of the MD5 file for source package before reading it
|
11
|
+
|
12
|
+
## Version 0.7.13 (Sept 05, 2016)
|
4
13
|
|
5
14
|
Minor enhancements:
|
6
15
|
* Enhanced to check if the remote origin URL matches the specified Git repository URL during build
|
@@ -104,8 +104,10 @@ module Luban
|
|
104
104
|
end
|
105
105
|
|
106
106
|
def install(args:, opts:)
|
107
|
-
download_package(args: args, opts: opts)
|
108
|
-
|
107
|
+
result = download_package(args: args, opts: opts)
|
108
|
+
unless result.nil? or result.status == :failed
|
109
|
+
install_package(args: args, opts: opts)
|
110
|
+
end
|
109
111
|
end
|
110
112
|
|
111
113
|
def install_all(args:, opts:)
|
@@ -250,4 +252,4 @@ module Luban
|
|
250
252
|
end
|
251
253
|
end
|
252
254
|
end
|
253
|
-
end
|
255
|
+
end
|
@@ -5,7 +5,7 @@ module Luban
|
|
5
5
|
class InstallFailure < Luban::Deployment::Error; end
|
6
6
|
|
7
7
|
def src_file_md5
|
8
|
-
@src_file_md5 ||= File.read(src_md5_file_path).chomp
|
8
|
+
@src_file_md5 ||= File.file?(src_md5_file_path) ? File.read(src_md5_file_path).chomp : ''
|
9
9
|
end
|
10
10
|
|
11
11
|
def required_packages
|
@@ -23,6 +23,10 @@ module Luban
|
|
23
23
|
@source_url_root ||= "source"
|
24
24
|
end
|
25
25
|
|
26
|
+
def old_source_url_root
|
27
|
+
@old_source_url_root ||= "source/old/#{package_version.gsub(/[a-z]/, '')}"
|
28
|
+
end
|
29
|
+
|
26
30
|
def installed?
|
27
31
|
return false unless file?(openssl_executable)
|
28
32
|
match?("#{openssl_executable} version", package_version)
|
@@ -39,6 +43,22 @@ module Luban
|
|
39
43
|
@configure_opts.unshift(OSXArchArgs[hardware_name.to_sym]) if osx?
|
40
44
|
end
|
41
45
|
|
46
|
+
def switch_source_url_root
|
47
|
+
@source_url_root = old_source_url_root
|
48
|
+
@download_url = nil
|
49
|
+
end
|
50
|
+
|
51
|
+
def validate_download_url!
|
52
|
+
unless url_exists?(download_url)
|
53
|
+
switch_source_url_root
|
54
|
+
unless url_exists?(download_url)
|
55
|
+
task.result.status = :failed
|
56
|
+
task.result.message = "Package #{package_full_name} is NOT found from url: #{download_url}."
|
57
|
+
raise InstallFailure, task.result.message
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
42
62
|
def make_package!
|
43
63
|
super and test(:make, "depend >> #{install_log_file_path} 2>&1")
|
44
64
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: luban
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rubyist Lei
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: luban-cli
|