autobuild 1.7.5 → 1.7.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.txt CHANGED
@@ -1,8 +1,8 @@
1
- Copyright (c) 2006-2011 Sylvain Joyeux <sylvain.joyeux@m4x.org> and contributors
1
+ Copyright (c) 2006-2013 Sylvain Joyeux <sylvain.joyeux@m4x.org> and contributors
2
2
 
3
3
  * http://rock-robotics.org
4
4
 
5
- This work is licensed under the GPLv2 license. See License.txt for details
5
+ This work is licensed under the BSD license. See License.txt for details
6
6
 
7
7
  == What's autobuild ?
8
8
  Autobuild imports, configures, builds and installs various kinds of software packages.
@@ -17,6 +17,7 @@ module Autobuild
17
17
  @macos
18
18
  end
19
19
 
20
+ SYSTEM_ENV = Hash.new
20
21
  ORIGINAL_ENV = Hash.new
21
22
  ENV.each do |k, v|
22
23
  ORIGINAL_ENV[k] = v
@@ -206,10 +207,10 @@ module Autobuild
206
207
  end
207
208
 
208
209
  def self.env_update_var(name)
209
- if !environment[name] && !inherited_environment[name]
210
+ if !environment[name] && !inherited_environment[name] && !SYSTEM_ENV[name]
210
211
  ENV.delete(name)
211
212
  else
212
- ENV[name] = ((environment[name] || []) + (inherited_environment[name] || [])).join(ENV_LIST_SEPARATOR)
213
+ ENV[name] = ((environment[name] || []) + (inherited_environment[name] || []) + (SYSTEM_ENV[name] || [])).join(ENV_LIST_SEPARATOR)
213
214
  end
214
215
  end
215
216
 
@@ -258,7 +258,11 @@ module Autobuild::Subprocess
258
258
  $stdin.reopen(pread)
259
259
  end
260
260
 
261
- exec(*command, :close_others => false)
261
+ if RUBY_VERSION < "1.9"
262
+ exec(*command)
263
+ else
264
+ exec(*command, :close_others => false)
265
+ end
262
266
  rescue Errno::ENOENT
263
267
  cwrite.write([CONTROL_COMMAND_NOT_FOUND].pack('I'))
264
268
  exit(100)
@@ -1,5 +1,5 @@
1
1
  module Autobuild
2
- VERSION = "1.7.5" unless defined? Autobuild::VERSION
2
+ VERSION = "1.7.6" unless defined? Autobuild::VERSION
3
3
  end
4
4
 
5
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autobuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.5
4
+ version: 1.7.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-21 00:00:00.000000000 Z
12
+ date: 2013-10-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake