summaryrefslogtreecommitdiff
path: root/python/tar.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/tar.cc')
-rw-r--r--python/tar.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/tar.cc b/python/tar.cc
index 4109776c..e42a9c50 100644
--- a/python/tar.cc
+++ b/python/tar.cc
@@ -181,7 +181,9 @@ PyObject *debExtract(PyObject *Self,PyObject *Args)
if (strcmp(".bz2", &Chunk[strlen(Chunk)-4]) == 0)
Comp = "bzip2";
else if(strcmp(".lzma", &Chunk[strlen(Chunk)-5]) == 0)
- Comp = "unlzma";
+ Comp = "lzma";
+ else if(strcmp(".xz", &Chunk[strlen(Chunk)-3]) == 0)
+ Comp = "xz";
ExtractTar Tar(Deb.GetFile(),Member->Size,Comp);
ProcessTar Proc(Function);
if (Tar.Go(Proc) == false)