Changeset View
Changeset View
Standalone View
Standalone View
swh/core/tarball.py
Show First 20 Lines • Show All 180 Lines • ▼ Show 20 Lines | |||||
# Additional uncompression archive format support | # Additional uncompression archive format support | ||||
ADDITIONAL_ARCHIVE_FORMATS = [ | ADDITIONAL_ARCHIVE_FORMATS = [ | ||||
# name, extensions, function | # name, extensions, function | ||||
("tar.Z|x", [".tar.Z", ".tar.x"], _unpack_tar), | ("tar.Z|x", [".tar.Z", ".tar.x"], _unpack_tar), | ||||
("jar", [".jar"], _unpack_zip), | ("jar", [".jar"], _unpack_zip), | ||||
("tbz2", [".tbz", "tbz2"], _unpack_tar), | ("tbz2", [".tbz", "tbz2"], _unpack_tar), | ||||
# FIXME: make this optional depending on the runtime lzip package install | # FIXME: make this optional depending on the runtime lzip package install | ||||
("tar.lz", [".tar.lz"], _unpack_tar), | ("tar.lz", [".tar.lz"], _unpack_tar), | ||||
("egg", [".egg"], _unpack_zip), | |||||
] | ] | ||||
register_new_archive_formats() | register_new_archive_formats() |