Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion patoolib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
'7z', 'ace', 'adf', 'alzip', 'ape', 'ar', 'arc', 'arj',
'bzip2', 'cab', 'chm', 'compress', 'cpio', 'deb', 'dms',
'flac', 'gzip', 'iso', 'udf', 'lrzip', 'lzh', 'lzip', 'lzma', 'lzop',
'rar', 'rpm', 'rzip', 'shar', 'shn', 'tar', 'vhd', 'xz',
'rar', 'rpm', 'rzip', 'shar', 'shn', 'tar', 'vhd', 'vhdx', 'xz',
'zip', 'zoo', 'zpaq')

# Supported compressions (used with tar for example)
Expand Down Expand Up @@ -84,6 +84,7 @@
'application/x-shar': 'shar',
'application/x-tar': 'tar',
'application/x-vhd': 'vhd',
'application/x-vhdx-disk': 'vhdx',
'application/x-xz': 'xz',
'application/x-zip-compressed': 'zip',
'application/x-zoo': 'zoo',
Expand Down Expand Up @@ -275,6 +276,11 @@
'list': ('7z',),
'test': ('7z',),
},
'vhdx': {
'extract': ('7z',),
'list': ('7z',),
'test': ('7z',),
},
'xz': {
None: ('xz', '7z'),
'extract': py_lzma,
Expand Down
3 changes: 3 additions & 0 deletions patoolib/programs/p7zip.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def extract_7z_singlefile(archive, compression, cmd, verbosity, interactive, out
extract_iso = \
extract_udf = \
extract_vhd = \
extract_vhdx = \
extract_7z

def list_7z (archive, compression, cmd, verbosity, interactive):
Expand All @@ -75,6 +76,7 @@ def list_7z (archive, compression, cmd, verbosity, interactive):
list_xz = \
list_lzma = \
list_vhd = \
list_vhdx = \
list_7z


Expand All @@ -101,6 +103,7 @@ def test_7z (archive, compression, cmd, verbosity, interactive):
test_xz = \
test_lzma = \
test_vhd = \
test_vhdx = \
test_7z


Expand Down
1 change: 1 addition & 0 deletions patoolib/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ def add_mimedb_data(mimedb):
add_mimetype(mimedb, 'application/x-shar', '.shar')
add_mimetype(mimedb, 'application/x-tar', '.cbt')
add_mimetype(mimedb, 'application/x-vhd', '.vhd')
add_mimetype(mimedb, 'application/x-vhdx-disk', '.vhdx')
add_mimetype(mimedb, 'audio/x-ape', '.ape')
add_mimetype(mimedb, 'audio/x-shn', '.shn')
add_mimetype(mimedb, 'audio/flac', '.flac')
Expand Down