buildkit.extractors: Remove incorrect Windows-only restriction

This commit is contained in:
Eloston
2018-03-21 07:04:31 +00:00
parent a93df0634d
commit 31f649f178
2 changed files with 4 additions and 5 deletions

View File

@@ -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):

View File

@@ -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.