1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-30 19:57:42 +00:00

ArchiveChecker.check: reorder args, make most kwargs-only

This commit is contained in:
Thomas Waldmann 2023-01-23 15:18:11 +01:00
parent 60ebd1d2b0
commit 61904dd683
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01
2 changed files with 9 additions and 8 deletions

View file

@ -1703,16 +1703,17 @@ def __init__(self):
def check( def check(
self, self,
repository, repository,
*,
verify_data=False,
repair=False, repair=False,
match=None,
sort_by="",
first=0, first=0,
last=0, last=0,
sort_by="",
match=None,
older=None, older=None,
newer=None, newer=None,
oldest=None, oldest=None,
newest=None, newest=None,
verify_data=False,
): ):
"""Perform a set of checks on 'repository' """Perform a set of checks on 'repository'

View file

@ -51,16 +51,16 @@ def do_check(self, args, repository):
return EXIT_WARNING return EXIT_WARNING
if not args.repo_only and not ArchiveChecker().check( if not args.repo_only and not ArchiveChecker().check(
repository, repository,
verify_data=args.verify_data,
repair=args.repair, repair=args.repair,
match=args.match_archives,
sort_by=args.sort_by or "ts",
first=args.first, first=args.first,
last=args.last, last=args.last,
sort_by=args.sort_by or "ts",
match=args.match_archives,
verify_data=args.verify_data,
oldest=args.oldest,
newest=args.newest,
older=args.older, older=args.older,
newer=args.newer, newer=args.newer,
oldest=args.oldest,
newest=args.newest,
): ):
return EXIT_WARNING return EXIT_WARNING
return EXIT_SUCCESS return EXIT_SUCCESS