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:
parent
60ebd1d2b0
commit
61904dd683
2 changed files with 9 additions and 8 deletions
|
@ -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'
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue