From 970aad33dfe17d25825ef83e6205acda6abae4c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Fri, 15 Mar 2013 23:32:14 +0100 Subject: [PATCH] 0.5.1: minor bugfix in test mode reporting --- README.rst | 5 +++++ src/bitrot.py | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 780aa87..d2acab8 100644 --- a/README.rst +++ b/README.rst @@ -36,6 +36,11 @@ under 10 minutes. Both tests on HFS+. Change Log ---------- +0.5.1 +~~~~~ + +* bugfix: warn about test mode only in test mode + 0.5.0 ~~~~~ diff --git a/src/bitrot.py b/src/bitrot.py index 2afd638..97fe219 100644 --- a/src/bitrot.py +++ b/src/bitrot.py @@ -40,7 +40,7 @@ import tempfile CHUNK_SIZE = 16384 DOT_THRESHOLD = 200 -VERSION = (0, 5, 0) +VERSION = (0, 5, 1) def sha1(path): @@ -198,7 +198,8 @@ def run(verbosity=1, test=False): print(' ', path) if not any((new_paths, updated_paths, missing_paths)): 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: sys.exit(1)