aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Erdmann <dywi@mailerd.de>2014-07-17 18:38:09 +0200
committerAndré Erdmann <dywi@mailerd.de>2014-07-17 18:38:09 +0200
commit3a7fd984632e964003802b81456eb51ecbb97b10 (patch)
tree294f833874ee83b2b69a99845188179013668c41
parentadd-policy package rule gen: properly set rule prio (diff)
downloadR_overlay-3a7fd984632e964003802b81456eb51ecbb97b10.tar.gz
R_overlay-3a7fd984632e964003802b81456eb51ecbb97b10.tar.bz2
R_overlay-3a7fd984632e964003802b81456eb51ecbb97b10.zip
remove SillyAdditionControlPackageRuleGenerator
replaced by AdditionControlPackageRuleGenerator
-rw-r--r--roverlay/packagerules/generators/addition_control.py27
1 files changed, 1 insertions, 26 deletions
diff --git a/roverlay/packagerules/generators/addition_control.py b/roverlay/packagerules/generators/addition_control.py
index 7f2cc95..0021817 100644
--- a/roverlay/packagerules/generators/addition_control.py
+++ b/roverlay/packagerules/generators/addition_control.py
@@ -333,37 +333,12 @@ class AdditionControlPackageRuleGenerator (
return combined_acceptor
# --- end of package_token_to_acceptor (...) ---
-
-class SillyAdditionControlPackageRuleGenerator (
- roverlay.packagerules.generators.abstract.addition_control.\
- AbstractAdditionControlPackageRuleGenerator
-):
- """
- An add-policy package rule generator that doesn't care about its tokens.
-
- Not useful for productive usage - will be removed as soon as a proper
- rule generator has been implemented.
- """
-
- def __init__ ( self ):
- super ( SillyAdditionControlPackageRuleGenerator, self ).__init__()
- self.namespace = roverlay.util.namespace.SimpleNamespace()
-
- def _get_true_acceptor_from_namespace ( self, any_token, priority ):
- return self.namespace.get_object_v (
- roverlay.packagerules.acceptors.trivial.TrueAcceptor,
- ( priority, ),
- {}
- )
-
- category_token_to_acceptor = _get_true_acceptor_from_namespace
- package_token_to_acceptor = _get_true_acceptor_from_namespace
+# --- end of AdditionControlPackageRuleGenerator ---
def temporary_demo_func():
- #rule_generator = SillyAdditionControlPackageRuleGenerator()
ARES = AdditionControlResult
rule_generator = AdditionControlPackageRuleGenerator("sci-R")
CTOKEN = rule_generator.create_category_token