浏览代码

fix commandline dispatch for converter

Antoine Beaupré 9 年之前
父节点
当前提交
58815bc28a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      borg/archiver.py

+ 2 - 2
borg/archiver.py

@@ -463,9 +463,9 @@ Type "Yes I am sure" if you understand this and want to continue.\n""")
             stats.print_('Deleted data:', cache)
         return self.exit_code
 
-    def do_convert(self, parser, commands, args):
+    def do_convert(self, args):
         """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:
             repo.convert(args.dry_run)
         except NotImplementedError as e: