Mercurial > feed-push
comparison feed-push @ 25:0946b4e64b20 draft
fix a NameError
Signed-off-by: Changaco <changaco ατ changaco δοτ net>
author | Changaco <changaco ατ changaco δοτ net> |
---|---|
date | Sat, 04 Aug 2012 17:43:17 +0200 |
parents | 96e2d5ffcd23 |
children | 022c785c98bd |
comparison
equal
deleted
inserted
replaced
24:96e2d5ffcd23 | 25:0946b4e64b20 |
---|---|
141 def update_config(path, event): | 141 def update_config(path, event): |
142 feeds_paths = set(concat(d.keys() for d in config_to_feed_paths_to_commands.values())) | 142 feeds_paths = set(concat(d.keys() for d in config_to_feed_paths_to_commands.values())) |
143 if event == gamin.GAMChanged: | 143 if event == gamin.GAMChanged: |
144 parse_config_file(path_to_config_fd[path]) | 144 parse_config_file(path_to_config_fd[path]) |
145 elif event == gamin.GAMDeleted: | 145 elif event == gamin.GAMDeleted: |
146 log('removing actions from deleted config file '+config_fd.name) | 146 log('removing actions from deleted config file '+path) |
147 config_to_feed_paths_to_commands.pop(path) | 147 config_to_feed_paths_to_commands.pop(path) |
148 path_to_config_fd.pop(path).close() | 148 path_to_config_fd.pop(path).close() |
149 new_feeds_paths = set(concat(d.keys() for d in config_to_feed_paths_to_commands.values())) | 149 new_feeds_paths = set(concat(d.keys() for d in config_to_feed_paths_to_commands.values())) |
150 for feed_path in feeds_paths.difference(new_feeds_paths): | 150 for feed_path in feeds_paths.difference(new_feeds_paths): |
151 monitor.stop_watch(feed_path) | 151 monitor.stop_watch(feed_path) |