autoproj 1.9.0.rc1 → 1.9.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1517,7 +1517,7 @@ module Autoproj
1517
1517
 
1518
1518
  def ask(current_value, doc = nil)
1519
1519
  default_value =
1520
- if current_value then current_value.to_s
1520
+ if !current_value.nil? then current_value.to_s
1521
1521
  elsif options[:default] then options[:default].to_str
1522
1522
  else ''
1523
1523
  end
@@ -723,7 +723,16 @@ module Autoproj
723
723
  manifest.install_os_dependencies(all_enabled_packages)
724
724
  end
725
725
 
726
- if !selected_packages.empty? && !force_re_build_with_depends?
726
+ if selected_packages.empty? && Autobuild.do_rebuild
727
+ # If we don't have an explicit package selection, the handling
728
+ # of #prepare_for_rebuild is passed to Autobuild.apply. However,
729
+ # we want to make sure that the user really wants this
730
+ opt = BuildOption.new("", "boolean", {:doc => 'this is going to trigger a rebuild of all packages. Is that really what you want ?'}, nil)
731
+ if !opt.ask(false)
732
+ raise Interrupt
733
+ end
734
+
735
+ elsif !selected_packages.empty? && !force_re_build_with_depends?
727
736
  if Autobuild.do_rebuild
728
737
  selected_packages.each do |pkg_name|
729
738
  Autobuild::Package[pkg_name].prepare_for_rebuild
@@ -47,7 +47,7 @@ module Autoproj
47
47
 
48
48
  def ask(current_value, doc = nil)
49
49
  default_value =
50
- if current_value then current_value.to_s
50
+ if !current_value.nil? then current_value.to_s
51
51
  elsif options[:default] then options[:default].to_str
52
52
  else ''
53
53
  end
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.9.0.rc1"
2
+ VERSION = "1.9.0.rc2"
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.0.rc1
4
+ version: 1.9.0.rc2
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-11-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: autobuild
16
- requirement: &18094640 !ruby/object:Gem::Requirement
16
+ requirement: &20707700 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.6.0.rc1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *18094640
24
+ version_requirements: *20707700
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: utilrb
27
- requirement: &18093700 !ruby/object:Gem::Requirement
27
+ requirement: &20706440 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.6.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *18093700
35
+ version_requirements: *20706440
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: highline
38
- requirement: &18092320 !ruby/object:Gem::Requirement
38
+ requirement: &20705680 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.5.0
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *18092320
46
+ version_requirements: *20705680
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rdoc
49
- requirement: &18091440 !ruby/object:Gem::Requirement
49
+ requirement: &20704480 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '3.10'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *18091440
57
+ version_requirements: *20704480
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: hoe
60
- requirement: &18089940 !ruby/object:Gem::Requirement
60
+ requirement: &20703460 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '3.3'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *18089940
68
+ version_requirements: *20703460
69
69
  description: autoproj is a manager for sets of software packages. It allows the user
70
70
  to import and build packages from source, still using the underlying distribution's
71
71
  native package manager for software that is available on it.