Skip to content
Permalink
Browse files
Fix #2740
  • Loading branch information
ralsina committed May 17, 2017
1 parent 7abdd1e commit 0f06b98493f40eac082093b525c875ad03361cfa
Showing with 3 additions and 1 deletion.
  1. +2 −0 CHANGES.txt
  2. +1 −1 nikola/plugins/command/auto/__init__.py
@@ -11,6 +11,8 @@ Features
Bugfixes
--------

* Ignore files ending wih "bak" (Issue #2740)

New in v7.8.5
=============

@@ -270,7 +270,7 @@ def do_rebuild(self, event):
if (fname.endswith('~') or
fname.startswith('.') or
'__pycache__' in event_path or
event_path.endswith(('.pyc', '.pyo', '.pyd')) or
event_path.endswith(('.pyc', '.pyo', '.pyd', '_bak')) or

This comment has been minimized.

Copy link
@Kwpolska

Kwpolska May 17, 2017

Member

Remove the underscore in case some tool does .bak too.

os.path.isdir(event_path)): # Skip on folders, these are usually duplicates
return
self.logger.info('REBUILDING SITE (from {0})'.format(event_path))

0 comments on commit 0f06b98

Please sign in to comment.