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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71c03141d5e512a7cc7560bd21dff1ba60167a5b
4
- data.tar.gz: dd906e80f5772a81b6111026f6fbc152418e6b5e
3
+ metadata.gz: 1416fc8be90452353f3a55a7db1d98b6fac7b063
4
+ data.tar.gz: bddd592807757b46c4e020597418d8153703801f
5
5
  SHA512:
6
- metadata.gz: bc3ab52a3ce026473f3f3c3fed621ca555321294e89d824841ee4318ffe03e41865fa9dc6c92889f4cd0010ba07ef64ebb7159bfed6876ca31bc0a20dc8290cd
7
- data.tar.gz: 5a998cd2a7c5d58df75b7ac94a1ee3961d068104c2ea19c65e52175a29fdd9d304ec49511ecd9318c521200d7c058e428d11069d87c3fd361389d3c45b427f31
6
+ metadata.gz: 2b5aca4e7ba60e615309ecabe3d75eb868258f53919514c6a5af90214362210e997c29e55f4b37eef1141b6011f56b269bcc77c4d93e16ca26c0a20ca4194cba
7
+ data.tar.gz: c785620bc8873d98dc327175c42d900047af9072f32481e6bd96220719b217d86f2c92936ce0bc3914d41bd752b87e3fc14ba480abc19d8f99b58b2432f579ca
@@ -13,6 +13,6 @@ Autoproj::CmdLine.report do
13
13
  cache_dir = File.expand_path(cache_dir, root_dir)
14
14
 
15
15
  cache_op = Autoproj::Ops::Cache.new(cache_dir, Autoproj.manifest)
16
- cache_op.create_or_update
16
+ cache_op.create_or_update(Autobuild.ignore_errors)
17
17
  end
18
18
 
@@ -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
- case pkg.importer
68
- when Autobuild::Git
69
- Autoproj.message " [#{i}/#{total}] caching #{pkg.name} (git)"
70
- cache_git(pkg)
71
- when Autobuild::ArchiveImporter
72
- Autoproj.message " [#{i}/#{total}] caching #{pkg.name} (archive)"
73
- cache_archive(pkg)
74
- else
75
- Autoproj.message " [#{i}/#{total}] not caching #{pkg.name} (cannot cache #{pkg.importer.class})"
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
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.11.0.rc4"
2
+ VERSION = "1.11.0.rc5"
3
3
  end
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.rc4
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-14 00:00:00.000000000 Z
11
+ date: 2014-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: autobuild