mirror of
https://github.com/lilydjwg/archrepo2.git
synced 2025-03-10 12:02:43 +00:00
watch necessary events only
so that an overflow is less likely to happen.
This commit is contained in:
parent
eaddcd33ba
commit
e7e8142d05
1 changed files with 3 additions and 1 deletions
|
@ -226,7 +226,9 @@ class EventHandler(pyinotify.ProcessEvent):
|
|||
p = os.path.join(d, f)
|
||||
if os.path.exists(p): # filter broken symlinks
|
||||
files.add(p)
|
||||
wm.add_watch(d, pyinotify.ALL_EVENTS)
|
||||
wm.add_watch(d, pyinotify.IN_CLOSE_WRITE | pyinotify.IN_DELETE |
|
||||
pyinotify.IN_CREATE | pyinotify.IN_MOVED_FROM |
|
||||
pyinotify.IN_MOVED_TO | pyinotify.IN_OPEN)
|
||||
self.repomans[d] = RepoMan(config, d, self)
|
||||
self.name = self.repomans[d].name
|
||||
self._auto_rename = self.repomans[d]._auto_rename
|
||||
|
|
Loading…
Add table
Reference in a new issue