summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2013-07-29 21:44:56 +0200
committerHelmut Grohne <helmut@subdivi.de>2013-07-29 21:44:56 +0200
commit11c6897331d4df7704217d6718c0ad57dc567529 (patch)
tree3759a44fa4c29cbe90ed2d0e7b1d81ea8ad0c828
parente88f5f74cebed92c42543ce0682a8a49075d859b (diff)
downloaddebian-dedup-11c6897331d4df7704217d6718c0ad57dc567529.tar.gz
importpkg.py: support uncompressed data.tar
-rwxr-xr-ximportpkg.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/importpkg.py b/importpkg.py
index 2f38f5c..02d4936 100755
--- a/importpkg.py
+++ b/importpkg.py
@@ -109,6 +109,8 @@ def process_package(filelike):
elif name == "data.tar.xz":
zf = DecompressedStream(af, lzma.LZMADecompressor())
tf = tarfile.open(fileobj=zf, mode="r|")
+ elif name == "data.tar":
+ tf = tarfile.open(fileobj=af, mode="r|")
else:
continue
if state != "control_file":