summaryrefslogtreecommitdiff
path: root/importpkg.py
diff options
context:
space:
mode:
Diffstat (limited to 'importpkg.py')
-rwxr-xr-ximportpkg.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/importpkg.py b/importpkg.py
index 7482c4f..247965f 100755
--- a/importpkg.py
+++ b/importpkg.py
@@ -69,6 +69,10 @@ def process_package(filelike, hash_functions):
elif name == "data.tar.bz2":
new_state = "data"
tf = tarfile.open(fileobj=af, mode="r|bz2")
+ elif name == "data.tar.lzma":
+ new_state = "data"
+ zf = DecompressedStream(af, lzma.LZMADecompressor())
+ tf = tarfile.open(fileobj=zf, mode="r|")
elif name == "data.tar.xz":
new_state = "data"
zf = DecompressedStream(af, lzma.LZMADecompressor())