# HG changeset patch # User Changaco # Date 1344164437 -7200 # Node ID f5c5e6f4edc87006a5fa1f6f0ad3ffd460f07cc7 # Parent 7e935b48f53a278e686d42e60a45bf22670ddfda handle GAMCreated on feeds for which a file descriptor was already open Signed-off-by: Changaco diff --git a/feed-push b/feed-push --- a/feed-push +++ b/feed-push @@ -162,6 +162,9 @@ def handle_feed_change(path, event): handle_feed_change(path, gamin.GAMChanged) else: ignore_event(path, event) + elif event == gamin.GAMCreated: + path_to_feed_fd.pop(path).close() + handle_feed_change(path, gamin.GAMCreated) elif event == gamin.GAMChanged: feed_fd = path_to_feed_fd[path] feed_fd.seek(0)