Mercurial > feed-push
changeset 10:89f581ebf4b2 draft
fix update_config function
Signed-off-by: Changaco <changaco ατ changaco δοτ net>
author | Changaco <changaco ατ changaco δοτ net> |
---|---|
date | Mon, 16 Apr 2012 01:31:12 +0200 |
parents | 8dc405772957 |
children | 0b28010f6c78 |
files | feed-push |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/feed-push +++ b/feed-push @@ -125,7 +125,7 @@ def open_config(path, event): ignore_event(path, event) def update_config(path, event): - feeds_paths = set(concat(config_to_feed_paths_to_commands.values())) + feeds_paths = set(concat(d.keys() for d in config_to_feed_paths_to_commands.values())) if event == gamin.GAMChanged: log('updating actions from modified config file '+config_fd.name) parse_config_file(path_to_config_fd[path]) @@ -133,7 +133,7 @@ def update_config(path, event): log('removing actions from deleted config file '+config_fd.name) config_to_feed_paths_to_commands.pop(path) path_to_config_fd.pop(path).close() - new_feeds_paths = set(concat(config_to_feed_paths_to_commands.values())) + new_feeds_paths = set(concat(d.keys() for d in config_to_feed_paths_to_commands.values())) for feed_path in feeds_paths.difference(new_feeds_paths): monitor.stop_watch(feed_path) if feed_path in path_to_feed_fd: