aboutsummaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2014-09-17 20:09:50 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2014-09-17 20:09:50 +0100
commite50565b501d2e1484a92b62c41ae9628d6a51b53 (patch)
tree502e7ae3f2c1291600f6175ffc747fbe3f61d7f8 /ruby
parent484fd93ff91f84c5e89cd4ef69ccf9a4fa15aee6 (diff)
downloadpaludis-e50565b501d2e1484a92b62c41ae9628d6a51b53.tar.gz
paludis-e50565b501d2e1484a92b62c41ae9628d6a51b53.tar.xz
Remove 'breaks Portage' code
Diffstat (limited to 'ruby')
-rw-r--r--ruby/package_id.cc34
-rw-r--r--ruby/package_id_TEST.rb4
2 files changed, 1 insertions, 37 deletions
diff --git a/ruby/package_id.cc b/ruby/package_id.cc
index 75e623281..b5bd20e9e 100644
--- a/ruby/package_id.cc
+++ b/ruby/package_id.cc
@@ -2,7 +2,7 @@
/*
* Copyright (c) 2007, 2008 Richard Brown
- * Copyright (c) 2007, 2008, 2009, 2010, 2011 Ciaran McCreesh
+ * Copyright (c) 2007, 2008, 2009, 2010, 2011, 2014 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -311,37 +311,6 @@ namespace
}
/*
- * call-seq:
- * breaks_portage -> [:reason, :reason, ...]
- *
- * Do we break Portage, and if so, why?
- *
- * This method may be used by Environment implementations to apply a "we don't want packages that break Portage" mask.
- */
- VALUE
- package_id_breaks_portage(VALUE self)
- {
- VALUE result(rb_ary_new());
- std::shared_ptr<const PackageID> * self_ptr;
- Data_Get_Struct(self, std::shared_ptr<const PackageID>, self_ptr);
- try
- {
- std::shared_ptr<const Set<std::string> > breakages((*self_ptr)->breaks_portage());
- if (breakages)
- for (Set<std::string>::ConstIterator it(breakages->begin()),
- it_end(breakages->end()); it_end != it; ++it)
- rb_ary_push(result, ID2SYM(rb_intern(it->c_str())));
- return result;
- }
- catch (const std::exception & e)
- {
- exception_to_ruby_exception(e);
- }
-
- return Qnil;
- }
-
- /*
* Document-method: contents
*
* call-seq:
@@ -546,7 +515,6 @@ namespace
rb_define_method(c_package_id, "masks", RUBY_FUNC_CAST(&package_id_masks), 0);
rb_define_method(c_package_id, "overridden_masks", RUBY_FUNC_CAST(&package_id_overridden_masks), 0);
rb_define_method(c_package_id, "masked?", RUBY_FUNC_CAST((&PackageIDBool<&PackageID::masked>::fetch)), 0);
- rb_define_method(c_package_id, "breaks_portage", RUBY_FUNC_CAST(&package_id_breaks_portage), 0);
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, "dependencies_key", RUBY_FUNC_CAST((
diff --git a/ruby/package_id_TEST.rb b/ruby/package_id_TEST.rb
index 0215af2e9..52e0ce868 100644
--- a/ruby/package_id_TEST.rb
+++ b/ruby/package_id_TEST.rb
@@ -170,10 +170,6 @@ module Paludis
assert !pid_installed.masked?
end
- def test_breaks_portage
- assert pid_testrepo.breaks_portage.empty?
- end
-
def test_masks
masks = pid_testrepo.masks
assert_equal 1, masks.length