Add listing support for xz

This commit is contained in:
Bastian Kleineidam 2011-10-19 09:11:08 +02:00
parent ad9011e57e
commit ed41abb47b
1 changed files with 9 additions and 0 deletions

View File

@ -21,3 +21,12 @@ from patoolib.programs import extract_singlefile_standard, \
extract_xz = extract_singlefile_standard
test_xz = test_singlefile_standard
create_xz = create_singlefile_standard
def list_xz (archive, encoding, cmd, **kwargs):
"""List a XZ archive."""
cmdlist = [cmd]
cmdlist.append('-l')
if kwargs['verbose']:
cmdlist.append('-v')
cmdlist.append(archive)
return cmdlist