manageiq-cross_repo 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/manageiq/cross_repo/repository.rb +15 -1
- data/lib/manageiq/cross_repo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 756d32fbaca87b4fcd09bcb95dca76ad5e4560561586431dd64c7ea050d56573
|
4
|
+
data.tar.gz: 9ddbaeb1080a02757d20113cf93f6161086e24d91cc03a8793893900b9933969
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f23fd2b6b57843d2974b06058786d1da8321d8eb83599fe4fe4935006e822ab036d5615cebc407db51c68c25f8d24bb3d78a85e37eb745565b68e66b55b35082
|
7
|
+
data.tar.gz: bd339e043a899aef5fafd10d2a8f85a59fc0d813b19d17c3b738ded4a6809b3f246e548eb2bdba0a11a5298fba3933296ffd4b1583a9fce2808ac62b503c613f
|
@@ -31,7 +31,9 @@ module ManageIQ::CrossRepo
|
|
31
31
|
require "tmpdir"
|
32
32
|
require "zlib"
|
33
33
|
|
34
|
-
|
34
|
+
retries ||= 0
|
35
|
+
|
36
|
+
puts "Fetching #{tarball_url}#{retry_count(retries)}"
|
35
37
|
|
36
38
|
Dir.mktmpdir do |dir|
|
37
39
|
Mixlib::Archive.new(open_tarball_url(tarball_url)).extract(dir)
|
@@ -40,6 +42,12 @@ module ManageIQ::CrossRepo
|
|
40
42
|
FileUtils.mkdir_p(path.dirname)
|
41
43
|
FileUtils.mv(content_dir, path)
|
42
44
|
end
|
45
|
+
rescue => e
|
46
|
+
retries += 1
|
47
|
+
raise if retries > 3
|
48
|
+
|
49
|
+
sleep 1
|
50
|
+
retry
|
43
51
|
end
|
44
52
|
|
45
53
|
private
|
@@ -167,5 +175,11 @@ module ManageIQ::CrossRepo
|
|
167
175
|
def git_pr_to_sha(url, pr)
|
168
176
|
git_branch_to_sha(url, "refs/pull/#{pr}/merge") || git_branch_to_sha(url, "refs/pull/#{pr}/head")
|
169
177
|
end
|
178
|
+
|
179
|
+
def retry_count(num)
|
180
|
+
return if num == 0
|
181
|
+
|
182
|
+
" (retry #{num}/3)"
|
183
|
+
end
|
170
184
|
end
|
171
185
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manageiq-cross_repo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ManageIQ Authors
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: manageiq-style
|