autoproj 1.8.2.b7 → 1.8.2.b8

Sign up to get free protection for your applications and to get access to all the features.
@@ -1025,6 +1025,8 @@ fi
1025
1025
  return found, result
1026
1026
  end
1027
1027
 
1028
+ class MissingOSDep < ConfigError; end
1029
+
1028
1030
  # Resolves the given OS dependencies into the actual packages that need
1029
1031
  # to be installed on this particular OS.
1030
1032
  #
@@ -1035,14 +1037,14 @@ fi
1035
1037
  dependencies.each do |name|
1036
1038
  result = resolve_package(name)
1037
1039
  if !result
1038
- raise ConfigError.new, "there is no osdeps definition for #{name}"
1040
+ raise MissingOSDep.new, "there is no osdeps definition for #{name}"
1039
1041
  elsif result.empty?
1040
1042
  os_names, os_versions = OSDependencies.operating_system
1041
- raise ConfigError.new, "there is an osdeps definition for #{name}, but not for this operating system and version (resp. #{os_names.join(", ")} and #{os_versions.join(", ")})"
1043
+ raise MissingOSDep.new, "there is an osdeps definition for #{name}, but not for this operating system and version (resp. #{os_names.join(", ")} and #{os_versions.join(", ")})"
1042
1044
  else
1043
1045
  result.each do |handler, status, packages|
1044
1046
  if status == FOUND_NONEXISTENT
1045
- raise ConfigError.new, "there is an osdep definition for #{name}, and it explicitely states that this package does not exist on your OS"
1047
+ raise MissingOSDep.new, "there is an osdep definition for #{name}, and it explicitely states that this package does not exist on your OS"
1046
1048
  end
1047
1049
  if entry = all_packages.find { |h, _| h == handler }
1048
1050
  entry[1].concat(packages)
@@ -106,6 +106,8 @@ module Autobuild
106
106
  __depends_on__(pkg)
107
107
  end
108
108
  @os_packages |= pkg_os.to_set
109
+ rescue Autoproj::OSDependencies::MissingOSDep
110
+ Autoproj.manifest.add_exclusion(name, "the #{name} osdep is not available on this operating system")
109
111
  end
110
112
 
111
113
  def depends_on_os_package(name)
@@ -926,6 +926,8 @@ fi
926
926
  return found, result
927
927
  end
928
928
 
929
+ class MissingOSDep < ConfigError; end
930
+
929
931
  # Resolves the given OS dependencies into the actual packages that need
930
932
  # to be installed on this particular OS.
931
933
  #
@@ -936,14 +938,14 @@ fi
936
938
  dependencies.each do |name|
937
939
  result = resolve_package(name)
938
940
  if !result
939
- raise ConfigError.new, "there is no osdeps definition for #{name}"
941
+ raise MissingOSDep.new, "there is no osdeps definition for #{name}"
940
942
  elsif result.empty?
941
943
  os_names, os_versions = OSDependencies.operating_system
942
- raise ConfigError.new, "there is an osdeps definition for #{name}, but not for this operating system and version (resp. #{os_names.join(", ")} and #{os_versions.join(", ")})"
944
+ raise MissingOSDep.new, "there is an osdeps definition for #{name}, but not for this operating system and version (resp. #{os_names.join(", ")} and #{os_versions.join(", ")})"
943
945
  else
944
946
  result.each do |handler, status, packages|
945
947
  if status == FOUND_NONEXISTENT
946
- raise ConfigError.new, "there is an osdep definition for #{name}, and it explicitely states that this package does not exist on your OS"
948
+ raise MissingOSDep.new, "there is an osdep definition for #{name}, and it explicitely states that this package does not exist on your OS"
947
949
  end
948
950
  if entry = all_packages.find { |h, _| h == handler }
949
951
  entry[1].concat(packages)
@@ -1,3 +1,3 @@
1
1
  module Autoproj
2
- VERSION = "1.8.2.b7"
2
+ VERSION = "1.8.2.b8"
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.8.2.b7
4
+ version: 1.8.2.b8
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-10-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: autobuild
16
- requirement: &17010120 !ruby/object:Gem::Requirement
16
+ requirement: &16778020 !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: *17010120
24
+ version_requirements: *16778020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: utilrb
27
- requirement: &17009160 !ruby/object:Gem::Requirement
27
+ requirement: &16777080 !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: *17009160
35
+ version_requirements: *16777080
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: highline
38
- requirement: &17008280 !ruby/object:Gem::Requirement
38
+ requirement: &16776500 !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: *17008280
46
+ version_requirements: *16776500
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rdoc
49
- requirement: &17007580 !ruby/object:Gem::Requirement
49
+ requirement: &16775640 !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: *17007580
57
+ version_requirements: *16775640
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: hoe
60
- requirement: &17006800 !ruby/object:Gem::Requirement
60
+ requirement: &16774300 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '3.0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *17006800
68
+ version_requirements: *16774300
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.