autoproj 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ = Version 1.5.1
2
+ * --no-osdeps disables updating autobuild and autoproj, as it should
3
+ * fixed checking out modules that are not yet checked out
4
+
1
5
  = Version 1.5.0
2
6
  * the "clean up this mess" release. Autoproj's main logic is now properly
3
7
  split into separate methods instead of being all in a monolitic bin/autoproj
@@ -39,9 +39,26 @@ module Autoproj
39
39
 
40
40
  manifest_path = File.join(Autoproj.config_dir, 'manifest')
41
41
  Autoproj.manifest = Manifest.load(manifest_path)
42
+
43
+ # Once thing left to do: handle the Autoproj.auto_update
44
+ # configuration parameter. This has to be done here as the rest of
45
+ # the configuration update/loading procedure rely on it.
46
+ #
47
+ # Namely, we must check if Autobuild.do_update has been explicitely
48
+ # set to true or false. If that is the case, don't do anything.
49
+ # Otherwise, set it to the value of auto_update (set in the
50
+ # manifest)
51
+ if Autobuild.do_update.nil?
52
+ Autobuild.do_update = manifest.auto_update?
53
+ end
54
+ if Autoproj::CmdLine.update_os_dependencies.nil?
55
+ Autoproj::CmdLine.update_os_dependencies = manifest.auto_update?
56
+ end
42
57
  end
43
58
 
44
59
  def self.update_myself
60
+ return if !Autoproj::CmdLine.update_os_dependencies?
61
+
45
62
  # First things first, see if we need to update ourselves
46
63
  osdeps = Autoproj::OSDependencies.load_default
47
64
  if osdeps.install(%w{autobuild autoproj})
@@ -92,20 +109,6 @@ module Autoproj
92
109
  def self.update_configuration
93
110
  manifest = Autoproj.manifest
94
111
 
95
- # Once thing left to do: handle the Autoproj.auto_update
96
- # configuration parameter
97
- #
98
- # Namely, we must check if Autobuild.do_update has been explicitely
99
- # set to true or false. If that is the case, don't do anything.
100
- # Otherwise, set it to the value of auto_update (set in the
101
- # manifest)
102
- if Autobuild.do_update.nil?
103
- Autobuild.do_update = manifest.auto_update?
104
- end
105
- if Autoproj::CmdLine.update_os_dependencies.nil?
106
- Autoproj::CmdLine.update_os_dependencies = manifest.auto_update?
107
- end
108
-
109
112
  # Load the installation's manifest a first time, to check if we should
110
113
  # update it ... We assume that the OS dependencies for this VCS is already
111
114
  # installed (i.e. that the user did not remove it)
@@ -284,7 +287,7 @@ module Autoproj
284
287
  current_packages.each do |pkg|
285
288
  # If the package has no importer, the source directory must
286
289
  # be there
287
- if !File.directory?(pkg.srcdir)
290
+ if !pkg.importer && !File.directory?(pkg.srcdir)
288
291
  raise ConfigError, "#{pkg.name} has no VCS, but is not checked out in #{pkg.srcdir}"
289
292
  end
290
293
 
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 5
8
- - 0
9
- version: 1.5.0
8
+ - 1
9
+ version: 1.5.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sylvain Joyeux
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-26 00:00:00 +02:00
17
+ date: 2010-05-27 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency