0.5.1: minor bugfix in test mode reporting

This commit is contained in:
Łukasz Langa 2013-03-15 23:32:14 +01:00
parent 26a6d62b02
commit 970aad33df
2 changed files with 8 additions and 2 deletions

View File

@ -36,6 +36,11 @@ under 10 minutes. Both tests on HFS+.
Change Log Change Log
---------- ----------
0.5.1
~~~~~
* bugfix: warn about test mode only in test mode
0.5.0 0.5.0
~~~~~ ~~~~~

View File

@ -40,7 +40,7 @@ import tempfile
CHUNK_SIZE = 16384 CHUNK_SIZE = 16384
DOT_THRESHOLD = 200 DOT_THRESHOLD = 200
VERSION = (0, 5, 0) VERSION = (0, 5, 1)
def sha1(path): def sha1(path):
@ -198,7 +198,8 @@ def run(verbosity=1, test=False):
print(' ', path) print(' ', path)
if not any((new_paths, updated_paths, missing_paths)): if not any((new_paths, updated_paths, missing_paths)):
print() print()
print('warning: database file not updated on disk (test mode).') if test:
print('warning: database file not updated on disk (test mode).')
if error_count: if error_count:
sys.exit(1) sys.exit(1)