List xz archives with echo.
This commit is contained in:
parent
6f6a614dc3
commit
a59ae7c03b
|
@ -30,6 +30,10 @@ def list_lzma (archive, encoding, cmd, **kwargs):
|
||||||
"""List a LZMA archive."""
|
"""List a LZMA archive."""
|
||||||
return stripext(cmd, archive)
|
return stripext(cmd, archive)
|
||||||
|
|
||||||
|
def list_xz (archive, encoding, cmd, **kwargs):
|
||||||
|
"""List a XZ archive."""
|
||||||
|
return stripext(cmd, archive)
|
||||||
|
|
||||||
def stripext (cmd, archive):
|
def stripext (cmd, archive):
|
||||||
"""Echo the name without suffix."""
|
"""Echo the name without suffix."""
|
||||||
return [cmd, util.stripext(archive)]
|
return [cmd, util.stripext(archive)]
|
||||||
|
|
Loading…
Reference in New Issue