send repo directly to extract and export_tar
This commit is contained in:
parent
58c95d8015
commit
86587ab2dc
2 changed files with 2 additions and 10 deletions
|
@ -47,11 +47,7 @@ def export_tar_archive(
|
||||||
+ (('--tar-filter', tar_filter) if tar_filter else ())
|
+ (('--tar-filter', tar_filter) if tar_filter else ())
|
||||||
+ (('--strip-components', str(strip_components)) if strip_components else ())
|
+ (('--strip-components', str(strip_components)) if strip_components else ())
|
||||||
+ flags.make_repository_archive_flags(
|
+ flags.make_repository_archive_flags(
|
||||||
os.path.abspath(repository)
|
repository,
|
||||||
if ':' not in repository
|
|
||||||
else os.path.abspath(repository[7:])
|
|
||||||
if repository.startswith('file://')
|
|
||||||
else repository,
|
|
||||||
archive,
|
archive,
|
||||||
local_borg_version,
|
local_borg_version,
|
||||||
)
|
)
|
||||||
|
|
|
@ -100,11 +100,7 @@ def extract_archive(
|
||||||
+ (('--progress',) if progress else ())
|
+ (('--progress',) if progress else ())
|
||||||
+ (('--stdout',) if extract_to_stdout else ())
|
+ (('--stdout',) if extract_to_stdout else ())
|
||||||
+ flags.make_repository_archive_flags(
|
+ flags.make_repository_archive_flags(
|
||||||
os.path.abspath(repository)
|
repository,
|
||||||
if ':' not in repository
|
|
||||||
else os.path.abspath(repository[7:])
|
|
||||||
if repository.startswith('file://')
|
|
||||||
else repository,
|
|
||||||
archive,
|
archive,
|
||||||
local_borg_version,
|
local_borg_version,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue