autoproj 1.11.0.rc4 → 1.11.0.rc5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/autoproj-cache +1 -1
- data/lib/autoproj/ops/cache.rb +32 -10
- data/lib/autoproj/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1416fc8be90452353f3a55a7db1d98b6fac7b063
|
4
|
+
data.tar.gz: bddd592807757b46c4e020597418d8153703801f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b5aca4e7ba60e615309ecabe3d75eb868258f53919514c6a5af90214362210e997c29e55f4b37eef1141b6011f56b269bcc77c4d93e16ca26c0a20ca4194cba
|
7
|
+
data.tar.gz: c785620bc8873d98dc327175c42d900047af9072f32481e6bd96220719b217d86f2c92936ce0bc3914d41bd752b87e3fc14ba480abc19d8f99b58b2432f579ca
|
data/bin/autoproj-cache
CHANGED
data/lib/autoproj/ops/cache.rb
CHANGED
@@ -56,7 +56,7 @@ module Autoproj
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
def create_or_update
|
59
|
+
def create_or_update(keep_going = false)
|
60
60
|
FileUtils.mkdir_p cache_dir
|
61
61
|
|
62
62
|
packages = manifest.each_autobuild_package.
|
@@ -64,15 +64,37 @@ module Autoproj
|
|
64
64
|
total = packages.size
|
65
65
|
Autoproj.message "Handling #{total} packages"
|
66
66
|
packages.each_with_index do |pkg, i|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
67
|
+
begin
|
68
|
+
case pkg.importer
|
69
|
+
when Autobuild::Git
|
70
|
+
Autoproj.message " [#{i}/#{total}] caching #{pkg.name} (git)"
|
71
|
+
cache_git(pkg)
|
72
|
+
when Autobuild::ArchiveImporter
|
73
|
+
Autoproj.message " [#{i}/#{total}] caching #{pkg.name} (archive)"
|
74
|
+
cache_archive(pkg)
|
75
|
+
else
|
76
|
+
Autoproj.message " [#{i}/#{total}] not caching #{pkg.name} (cannot cache #{pkg.importer.class})"
|
77
|
+
end
|
78
|
+
rescue Interrupt
|
79
|
+
raise
|
80
|
+
rescue ::Exception => e
|
81
|
+
if keep_going
|
82
|
+
pkg.error " failed to cache #{pkg.name}, but going on as requested"
|
83
|
+
lines = e.to_s.split("\n")
|
84
|
+
if lines.empty?
|
85
|
+
lines = e.message.split("\n")
|
86
|
+
end
|
87
|
+
if lines.empty?
|
88
|
+
lines = ["unknown error"]
|
89
|
+
end
|
90
|
+
pkg.message(lines.shift, :red, :bold)
|
91
|
+
lines.each do |line|
|
92
|
+
pkg.message(line)
|
93
|
+
end
|
94
|
+
nil
|
95
|
+
else
|
96
|
+
raise
|
97
|
+
end
|
76
98
|
end
|
77
99
|
end
|
78
100
|
end
|
data/lib/autoproj/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autoproj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.0.
|
4
|
+
version: 1.11.0.rc5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rock Core Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: autobuild
|