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

fix commandline dispatch for converter

This commit is contained in:
Antoine Beaupré 2015-10-01 09:23:17 -04:00
parent 57801a288d
commit 58815bc28a

View file

@ -463,9 +463,9 @@ def do_prune(self, args):
stats.print_('Deleted data:', cache) stats.print_('Deleted data:', cache)
return self.exit_code return self.exit_code
def do_convert(self, parser, commands, args): def do_convert(self, args):
"""convert a repository from attic to borg""" """convert a repository from attic to borg"""
repo = AtticRepositoryConverter(os.path.join(args.repository, 'repository'), create=False) repo = AtticRepositoryConverter(args.repository.path, create=False)
try: try:
repo.convert(args.dry_run) repo.convert(args.dry_run)
except NotImplementedError as e: except NotImplementedError as e: