aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Erdmann <dywi@mailerd.de>2012-06-27 16:44:51 +0200
committerAndré Erdmann <dywi@mailerd.de>2012-06-27 16:44:51 +0200
commitb3b84d70211dd20e7efb500365e4f78dae205c5b (patch)
tree49b83f71182a65b3e8321d4648250a8e9992a65b /roverlay/recipe/easyresolver.py
parentSetFileListener in depres (diff)
downloadR_overlay-b3b84d70211dd20e7efb500365e4f78dae205c5b.tar.gz
R_overlay-b3b84d70211dd20e7efb500365e4f78dae205c5b.tar.bz2
R_overlay-b3b84d70211dd20e7efb500365e4f78dae205c5b.zip
add unresolvable listener to easyresolver
modified: roverlay/recipe/easyresolver.py
Diffstat (limited to 'roverlay/recipe/easyresolver.py')
-rw-r--r--roverlay/recipe/easyresolver.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/roverlay/recipe/easyresolver.py b/roverlay/recipe/easyresolver.py
index c5e737a..c083bda 100644
--- a/roverlay/recipe/easyresolver.py
+++ b/roverlay/recipe/easyresolver.py
@@ -14,6 +14,10 @@ def setup():
srule_files = config.get_or_fail ( 'DEPRES.simple_rules.files' )
+ unres_listener = listeners.UnresolvableSetFileListener (
+ config.get_or_fail ( 'LOG.FILE.unresolvable' )
+ )
+
if isinstance ( srule_files, str ):
srule_pool.load_rule_file ( srule_files )
else:
@@ -21,5 +25,6 @@ def setup():
srule_pool.load_rule_file ( f )
res.add_rulepool ( srule_pool )
+ res.add_listener ( unres_listener )
return res
# --- end of setup (...) ---