List xz archives with echo.

This commit is contained in:
Bastian Kleineidam 2010-02-23 19:30:20 +01:00
parent 6f6a614dc3
commit a59ae7c03b
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,10 @@ def list_lzma (archive, encoding, cmd, **kwargs):
"""List a LZMA archive."""
return stripext(cmd, archive)
def list_xz (archive, encoding, cmd, **kwargs):
"""List a XZ archive."""
return stripext(cmd, archive)
def stripext (cmd, archive):
"""Echo the name without suffix."""
return [cmd, util.stripext(archive)]