From 0377fb38fd0e043585ef0a1bc76468e8c01b4660 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 22 May 2018 17:18:38 +0200 Subject: [PATCH] fixup: output stats in dry-run mode it will just show nothing was deleted, but one sees how it would look like. this is also for consistency with borg prune --dry-run --stats, which behaves the same. (cherry picked from commit 857c5635dd0eb7d4ffa5ba183b660626d4bd2afe) --- src/borg/archiver.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/borg/archiver.py b/src/borg/archiver.py index e79d38fbd..d1a64746e 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -1080,12 +1080,12 @@ class Archiver: manifest.write() repository.commit(save_space=args.save_space) cache.commit() - if args.stats: - log_multi(DASHES, - STATS_HEADER, - stats.summary.format(label='Deleted data:', stats=stats), - str(cache), - DASHES, logger=logging.getLogger('borg.output.stats')) + if args.stats: + log_multi(DASHES, + STATS_HEADER, + stats.summary.format(label='Deleted data:', stats=stats), + str(cache), + DASHES, logger=logging.getLogger('borg.output.stats')) return self.exit_code