Changeset View
Changeset View
Standalone View
Standalone View
swh/core/tarball.py
Show First 20 Lines • Show All 171 Lines • ▼ Show 20 Lines | def compress(tarpath, nature, dirpath_or_files): | ||||
return tarpath | return tarpath | ||||
# 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), | |||||
# 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), | ||||
] | ] | ||||
register_new_archive_formats() | register_new_archive_formats() |