diff options
author | 2013-09-02 14:51:57 +0200 | |
---|---|---|
committer | 2013-09-02 14:51:57 +0200 | |
commit | d686482b9be576f741d0eaa6e17f312dbf0e4e6b (patch) | |
tree | 823ce22ce61bdbd1d18c2d0d110c2a43d7214aed /roverlay/depres/depresolver.py | |
parent | fix --sync-imports (diff) | |
download | R_overlay-d686482b9be576f741d0eaa6e17f312dbf0e4e6b.tar.gz R_overlay-d686482b9be576f741d0eaa6e17f312dbf0e4e6b.tar.bz2 R_overlay-d686482b9be576f741d0eaa6e17f312dbf0e4e6b.zip |
depres rule pools: accept dep_env, not mask
This allows to take the whole dep environment into account when deciding whether
it can be resolved by a specific rule pool or not.
Diffstat (limited to 'roverlay/depres/depresolver.py')
-rw-r--r-- | roverlay/depres/depresolver.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/roverlay/depres/depresolver.py b/roverlay/depres/depresolver.py index eeed396..b5ba075 100644 --- a/roverlay/depres/depresolver.py +++ b/roverlay/depres/depresolver.py @@ -390,8 +390,7 @@ class DependencyResolver ( object ): else: for rulepool in ( - p for p in self.dynamic_rule_pools \ - if p.accepts ( dep_env.deptype_mask, try_other=False ) + p for p in self.dynamic_rule_pools if p.accepts ( dep_env ) ): result = rulepool.matches ( dep_env ) if result: @@ -403,8 +402,7 @@ class DependencyResolver ( object ): # search for a match in the rule pools that accept the dep type for rulepool in ( - p for p in self.static_rule_pools \ - if p.accepts ( dep_env.deptype_mask, try_other=False ) + p for p in self.static_rule_pools if p.accepts ( dep_env ) ): result = rulepool.matches ( dep_env ) if result: @@ -417,8 +415,8 @@ class DependencyResolver ( object ): # search for a match in the rule pools # that (normally) don't accept the dep type for rulepool in ( - p for p in self.static_rule_pools \ - if p.accepts ( ~dep_env.deptype_mask, try_other=True ) + p for p in self.static_rule_pools + if p.accepts_other ( dep_env ) ): result = rulepool.matches ( dep_env ) if result: |