Also ignore db -wal and -shm temp db files when signing

This commit is contained in:
shortcutme 2019-04-08 18:12:29 +02:00
parent 763e5f4ac0
commit 5642d0aae6
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 1 deletions

View File

@ -598,7 +598,7 @@ class ContentManager(object):
elif not self.isValidRelativePath(file_relative_path):
ignored = True
self.log.error("- [ERROR] Invalid filename: %s" % file_relative_path)
elif dir_inner_path == "" and file_relative_path == self.site.storage.getDbFile():
elif dir_inner_path == "" and self.site.storage.getDbFile() and file_relative_path.startswith(self.site.storage.getDbFile()):
ignored = True
elif optional_pattern and SafeRe.match(optional_pattern, file_relative_path):
optional = True