1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-27 18:28: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(
self,
repository,
*,
verify_data=False,
repair=False,
match=None,
sort_by="",
first=0,
last=0,
sort_by="",
match=None,
older=None,
newer=None,
oldest=None,
newest=None,
verify_data=False,
):
"""Perform a set of checks on 'repository'

View file

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