mirror of
https://github.com/morgan9e/helium
synced 2026-04-14 00:14:20 +09:00
buildkit.extractors: Remove incorrect Windows-only restriction
This commit is contained in:
@@ -190,9 +190,8 @@ def _add_getsrc(subparsers):
|
||||
'binary for extraction. Default: %(default)s'))
|
||||
parser.add_argument(
|
||||
'--7z-path', dest='sevenz_path', default=SEVENZIP_USE_REGISTRY,
|
||||
help=('(Windows only) Command or path to the 7-Zip 7z.exe binary. If '
|
||||
'"_use_registry" is specified, determine the path from the registry. '
|
||||
'Default: %(default)s'))
|
||||
help=('Command or path to 7-Zip\'s "7z" binary. If "_use_registry" is '
|
||||
'specified, determine the path from the registry. Default: %(default)s'))
|
||||
parser.set_defaults(callback=_callback)
|
||||
|
||||
def _add_prubin(subparsers):
|
||||
|
||||
@@ -232,8 +232,8 @@ def extract_tar_file(archive_path, buildspace_tree, unpack_dir, ignore_files, re
|
||||
def extract_with_7z(archive_path, buildspace_tree, unpack_dir, ignore_files, relative_to, #pylint: disable=too-many-arguments
|
||||
extractors=None):
|
||||
"""
|
||||
(Windows only) Extract archives with 7-zip into the buildspace tree.
|
||||
Only supports archives with one layer of unpacking, unlike compressed tar archives.
|
||||
Extract archives with 7-zip into the buildspace tree.
|
||||
Only supports archives with one layer of unpacking, so compressed tar archives don't work.
|
||||
|
||||
archive_path is the pathlib.Path to the archive to unpack
|
||||
buildspace_tree is a pathlib.Path to the buildspace tree.
|
||||
|
||||
Reference in New Issue
Block a user