diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2008-08-05 17:26:43 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2008-08-05 17:26:43 +0000 |
commit | 3e55be9beb131b33b56985053f05272918ecb4b8 (patch) | |
tree | 41d737bb74d9e55e4be27ac8e8cf0eb8ea062efa /src | |
parent | 34cb392ffef3d9ddff1bd5b97d4255f937eb51bd (diff) | |
download | bcfg2-3e55be9beb131b33b56985053f05272918ecb4b8.tar.gz bcfg2-3e55be9beb131b33b56985053f05272918ecb4b8.tar.bz2 bcfg2-3e55be9beb131b33b56985053f05272918ecb4b8.zip |
Ignore events for emacs tmp files (Patch from f.pauget) (Resolves Ticket #589)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4853 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/Core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Server/Core.py b/src/lib/Server/Core.py index 92602808d..b85198178 100644 --- a/src/lib/Server/Core.py +++ b/src/lib/Server/Core.py @@ -21,7 +21,7 @@ def ShouldIgnore(event): if event.filename.split('/')[-1] == '.svn': return True if event.filename.endswith('~') or event.filename.endswith('.tmp') \ - or event.filename.endswith('.tmp'): + or event.filename.startswith('#') or event.filename.startswith('.#'): logger.error("Suppressing event for file %s" % (event.filename)) return True return False |