diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-23 13:44:31 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-06-23 13:44:31 -0600 |
commit | 532ea5509c32d4cd1c234b1dee3799fbe550e3ef (patch) | |
tree | ea5f0db8973e3b266c12b7ea0ada9a52996727aa /devel | |
parent | 5bfa5b7eee551c14ecee616f1830dc4603497311 (diff) | |
parent | 0aa246b85159bf627873308868cf169868cba569 (diff) |
Merge branch 'archweb-generic2'
Diffstat (limited to 'devel')
-rw-r--r-- | devel/management/commands/reporead_inotify.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/devel/management/commands/reporead_inotify.py b/devel/management/commands/reporead_inotify.py index 8c1e47bf..6aa4e0e0 100644 --- a/devel/management/commands/reporead_inotify.py +++ b/devel/management/commands/reporead_inotify.py @@ -192,10 +192,11 @@ class EventHandler(pyinotify.ProcessEvent): def process_default(self, event): '''Primary event processing function which kicks off reporead timer threads if a files database was updated.''' - if not event.name: + name = event.name + if not name: return - # screen to only the files we care about - if event.name.endswith('.files.tar.gz'): + # screen to only the files we care about, skipping temp files + if name.endswith('.files.tar.gz') and not name.startswith('.'): path = event.pathname stat = os.stat(path) database = self.databases.get(path, None) |