diff --git a/src/borg/remote.py b/src/borg/remote.py index 8088418a0..44a7d8e87 100644 --- a/src/borg/remote.py +++ b/src/borg/remote.py @@ -462,6 +462,8 @@ def do_rpc(self, *args, **kwargs): continue if 'previously' in restriction and named[name] == restriction['previously']: continue + if restriction.get('dontcare', False): + continue raise self.RPCServerOutdated("{0} {1}={2!s}".format(f.__name__, name, named[name]), format_version(restriction['since'])) @@ -890,8 +892,8 @@ def check(self, repair=False, save_space=False): """actual remoting is done via self.call in the @api decorator""" @api(since=parse_version('1.0.0'), - compact={'since': parse_version('1.2.0a0'), 'previously': True}, - cleanup_commits={'since': parse_version('1.2.0a0'), 'previously': False}) + compact={'since': parse_version('1.2.0a0'), 'previously': True, 'dontcare': True}, + cleanup_commits={'since': parse_version('1.2.0a0'), 'previously': False, 'dontcare': True}) def commit(self, save_space=False, compact=True, cleanup_commits=False): """actual remoting is done via self.call in the @api decorator"""