mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-08 16:23:42 -04:00
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:
parent
7ed377679b
commit
0377fb38fd
1 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue