From 86587ab2dcd561527f7c79b4e6b76b0d117196db Mon Sep 17 00:00:00 2001 From: Divyansh Singh Date: Mon, 20 Mar 2023 21:51:45 +0530 Subject: [PATCH] send repo directly to extract and export_tar --- borgmatic/borg/export_tar.py | 6 +----- borgmatic/borg/extract.py | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/borgmatic/borg/export_tar.py b/borgmatic/borg/export_tar.py index 28a876ef..a3f05d5c 100644 --- a/borgmatic/borg/export_tar.py +++ b/borgmatic/borg/export_tar.py @@ -47,11 +47,7 @@ def export_tar_archive( + (('--tar-filter', tar_filter) if tar_filter else ()) + (('--strip-components', str(strip_components)) if strip_components else ()) + flags.make_repository_archive_flags( - os.path.abspath(repository) - if ':' not in repository - else os.path.abspath(repository[7:]) - if repository.startswith('file://') - else repository, + repository, archive, local_borg_version, ) diff --git a/borgmatic/borg/extract.py b/borgmatic/borg/extract.py index be3c5b76..fccb0171 100644 --- a/borgmatic/borg/extract.py +++ b/borgmatic/borg/extract.py @@ -100,11 +100,7 @@ def extract_archive( + (('--progress',) if progress else ()) + (('--stdout',) if extract_to_stdout else ()) + flags.make_repository_archive_flags( - os.path.abspath(repository) - if ':' not in repository - else os.path.abspath(repository[7:]) - if repository.startswith('file://') - else repository, + repository, archive, local_borg_version, )