aboutsummaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-06 16:28:13 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-02-06 16:28:13 +0000
commitb38149a7b9859f1ea04c854127dafcfd0746ce83 (patch)
treeb68242f3e2fbdea03b02035e411fac890eda43f9 /ruby
parent7c929c87597f4e6fcfe8638e03e7b60c22090415 (diff)
downloadpaludis-b38149a7b9859f1ea04c854127dafcfd0746ce83.tar.gz
paludis-b38149a7b9859f1ea04c854127dafcfd0746ce83.tar.xz
No need to rewrite dependencies
Diffstat (limited to 'ruby')
-rw-r--r--ruby/dep_spec_TEST.rb6
-rw-r--r--ruby/package_id.cc10
2 files changed, 13 insertions, 3 deletions
diff --git a/ruby/dep_spec_TEST.rb b/ruby/dep_spec_TEST.rb
index 67a746a86..451ed5ce8 100644
--- a/ruby/dep_spec_TEST.rb
+++ b/ruby/dep_spec_TEST.rb
@@ -385,14 +385,14 @@ module Paludis
end
def spec_key
- env[Selection::RequireExactlyOne.new(Generator::Package.new("bar/foo"))].last.build_dependencies_key
+ env[Selection::RequireExactlyOne.new(Generator::Package.new("bar/foo"))].last.dependencies_key
end
def test_initial_labels
assert_kind_of Array, spec_key.initial_labels
assert_kind_of DependenciesBuildLabel, spec_key.initial_labels[0]
- assert_equal "DEPEND", spec_key.initial_labels[0].text
- assert_equal "DEPEND", spec_key.initial_labels[0].to_s
+ assert_equal "build", spec_key.initial_labels[0].text
+ assert_equal "build", spec_key.initial_labels[0].to_s
end
end
end
diff --git a/ruby/package_id.cc b/ruby/package_id.cc
index e7ba44b8e..f8e9b8c8b 100644
--- a/ruby/package_id.cc
+++ b/ruby/package_id.cc
@@ -402,6 +402,14 @@ namespace
* What we are a virtual for
*/
/*
+ * Document-method: dependencies_key
+ *
+ * call-seq:
+ * dependencies_key -> MetadataDependencySpecTreeKey
+ *
+ * Our dependencies
+ */
+ /*
* Document-method: build_dependencies_key
*
* call-seq:
@@ -514,6 +522,8 @@ namespace
rb_define_method(c_package_id, "keywords_key", RUBY_FUNC_CAST((&KeyValue<MetadataCollectionKey<KeywordNameSet>,&PackageID::keywords_key>::fetch)), 0);
rb_define_method(c_package_id, "provide_key", RUBY_FUNC_CAST((
&KeyValue<MetadataSpecTreeKey<ProvideSpecTree>, &PackageID::provide_key>::fetch)), 0);
+ rb_define_method(c_package_id, "dependencies_key", RUBY_FUNC_CAST((
+ &KeyValue<MetadataSpecTreeKey<DependencySpecTree>, &PackageID::dependencies_key>::fetch)), 0);
rb_define_method(c_package_id, "build_dependencies_key", RUBY_FUNC_CAST((
&KeyValue<MetadataSpecTreeKey<DependencySpecTree>, &PackageID::build_dependencies_key>::fetch)), 0);
rb_define_method(c_package_id, "run_dependencies_key", RUBY_FUNC_CAST((