autoproj 1.9.5 → 1.9.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,12 @@ if defined? Encoding # This is a 1.9-only thing
10
10
  Encoding.default_external = Encoding::UTF_8
11
11
  end
12
12
 
13
+ if ENV['AUTOPROJ_CURRENT_ROOT'] && ENV['AUTOPROJ_CURRENT_ROOT'] != Dir.pwd
14
+ STDERR.puts "the env.sh from #{ENV['AUTOPROJ_CURRENT_ROOT']} seem to already be sourced"
15
+ STDERR.puts "start a new shell and try to bootstrap again"
16
+ exit 1
17
+ end
18
+
13
19
  require 'rbconfig'
14
20
  module Autobuild
15
21
  @windows = RbConfig::CONFIG["host_os"] =~ %r!(msdos|mswin|djgpp|mingw|[Ww]indows)!
@@ -1512,7 +1518,7 @@ So, what do you want ? (all, none or a comma-separated list of: os gem pip)
1512
1518
  when 'gem' then modes << 'gem'
1513
1519
  when 'pip' then modes << 'pip'
1514
1520
  when 'os' then modes << 'os'
1515
- when 'none' then modes << 'none'
1521
+ when 'none' then
1516
1522
  else raise ArgumentError, "#{str} is not a known package handler"
1517
1523
  end
1518
1524
  end
@@ -1589,7 +1595,10 @@ So, what do you want ? (all, none or a comma-separated list of: os gem pip)
1589
1595
  options =
1590
1596
  if Kernel.respond_to?(:validate_options)
1591
1597
  Kernel.validate_options options, :osdeps_mode => osdeps_mode
1592
- else options.dup
1598
+ else
1599
+ options = options.dup
1600
+ options[:osdeps_mode] ||= osdeps_mode
1601
+ options
1593
1602
  end
1594
1603
 
1595
1604
  os_package_handler.enabled = false
@@ -1599,8 +1608,10 @@ So, what do you want ? (all, none or a comma-separated list of: os gem pip)
1599
1608
  options[:osdeps_mode].each do |m|
1600
1609
  if m == 'os'
1601
1610
  os_package_handler.enabled = true
1611
+ elsif pkg = package_handlers[m]
1612
+ pkg.enabled = true
1602
1613
  else
1603
- package_handlers[m].enabled = true
1614
+ Autoproj.warn "osdep handler #{m.inspect} has no handler, available handlers are #{package_handlers.keys.map(&:inspect).sort.join(", ")}"
1604
1615
  end
1605
1616
  end
1606
1617
  os_package_handler.silent = self.silent?
@@ -10,6 +10,12 @@ if defined? Encoding # This is a 1.9-only thing
10
10
  Encoding.default_external = Encoding::UTF_8
11
11
  end
12
12
 
13
+ if ENV['AUTOPROJ_CURRENT_ROOT'] && ENV['AUTOPROJ_CURRENT_ROOT'] != Dir.pwd
14
+ STDERR.puts "the env.sh from #{ENV['AUTOPROJ_CURRENT_ROOT']} seem to already be sourced"
15
+ STDERR.puts "start a new shell and try to bootstrap again"
16
+ exit 1
17
+ end
18
+
13
19
  require 'rbconfig'
14
20
  module Autobuild
15
21
  @windows = RbConfig::CONFIG["host_os"] =~ %r!(msdos|mswin|djgpp|mingw|[Ww]indows)!
@@ -1394,7 +1394,7 @@ So, what do you want ? (all, none or a comma-separated list of: os gem pip)
1394
1394
  when 'gem' then modes << 'gem'
1395
1395
  when 'pip' then modes << 'pip'
1396
1396
  when 'os' then modes << 'os'
1397
- when 'none' then modes << 'none'
1397
+ when 'none' then
1398
1398
  else raise ArgumentError, "#{str} is not a known package handler"
1399
1399
  end
1400
1400
  end
@@ -1471,7 +1471,10 @@ So, what do you want ? (all, none or a comma-separated list of: os gem pip)
1471
1471
  options =
1472
1472
  if Kernel.respond_to?(:validate_options)
1473
1473
  Kernel.validate_options options, :osdeps_mode => osdeps_mode
1474
- else options.dup
1474
+ else
1475
+ options = options.dup
1476
+ options[:osdeps_mode] ||= osdeps_mode
1477
+ options
1475
1478
  end
1476
1479
 
1477
1480
  os_package_handler.enabled = false
@@ -1481,8 +1484,10 @@ So, what do you want ? (all, none or a comma-separated list of: os gem pip)
1481
1484
  options[:osdeps_mode].each do |m|
1482
1485
  if m == 'os'
1483
1486
  os_package_handler.enabled = true
1487
+ elsif pkg = package_handlers[m]
1488
+ pkg.enabled = true
1484
1489
  else
1485
- package_handlers[m].enabled = true
1490
+ Autoproj.warn "osdep handler #{m.inspect} has no handler, available handlers are #{package_handlers.keys.map(&:inspect).sort.join(", ")}"
1486
1491
  end
1487
1492
  end
1488
1493
  os_package_handler.silent = self.silent?
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.9.5"
2
+ VERSION = "1.9.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoproj
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.5
4
+ version: 1.9.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-11-14 00:00:00.000000000 Z
12
+ date: 2013-12-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: autobuild