is_template_database_current: Open file in write mode.

This commit is contained in:
Umair Khan
2016-10-21 16:37:42 +05:00
committed by Tim Abbott
parent b894135fae
commit 8891731d7d

View File

@@ -85,9 +85,9 @@ def _check_hash(target_hash_file, **options):
else:
source_hash_content = None
with open(source_hash_file, 'a+') as f:
f.truncate(0)
with open(source_hash_file, 'w') as f:
f.write(target_hash_content)
return source_hash_content == target_hash_content
def is_template_database_current(