From ec96293d89234218f646830c686b443d483a101c Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Fri, 31 Mar 2017 15:35:53 +0200 Subject: [PATCH] actually output something in toc mode MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Until now backup.py wouldn’t print anything when passed the -l flag. Supply a trivial printer to the “list_func” argument to output the contents similar to what GNU tar does. --- backup.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/backup.py b/backup.py index 7a7e7dc..aa84348 100644 --- a/backup.py +++ b/backup.py @@ -134,7 +134,7 @@ if __name__ == "__main__": elif args.diff: deltatar.create_diff_backup(args.sourcepath, args.targetpath, args.indexes[0], args.volsize) elif args.list_files: - deltatar.list_backup(args.sourcepath) + deltatar.list_backup(args.sourcepath, lambda e: print (e.name)) elif args.restore: if args.indexes is not None: deltatar.restore_backup(args.targetpath, backup_indexes_paths=args.indexes) -- 1.7.1