summaryrefslogtreecommitdiff
path: root/devel/management/commands
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-23 13:14:05 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-23 13:14:05 -0600
commit0aa246b85159bf627873308868cf169868cba569 (patch)
tree0fd52aebc6ab0d3d5eff592d00ff10fe920bb035 /devel/management/commands
parent55b776d58999412cd6bf0787a41d6ab00bf80fb6 (diff)
parent31bc66e23c2ea0467d2201b86536f161fd1f32ca (diff)
Merge branch 'archweb' into archweb-generic2
Diffstat (limited to 'devel/management/commands')
-rw-r--r--devel/management/commands/reporead_inotify.py7
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)