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 857c5635dd)
This commit is contained in:
Thomas Waldmann 2018-05-22 17:18:38 +02:00
parent 7ed377679b
commit 0377fb38fd
1 changed files with 6 additions and 6 deletions

View File

@ -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