Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix #2740
  • Loading branch information
ralsina committed May 17, 2017
1 parent 7abdd1e commit 0f06b98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.txt
Expand Up @@ -11,6 +11,8 @@ Features
Bugfixes
--------

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

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

Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/command/auto/__init__.py
Expand Up @@ -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))
Expand Down

0 comments on commit 0f06b98

Please sign in to comment.