summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-10-21 09:13:58 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-10-21 09:13:58 +0200
commit8ca5779cfe930f8a423969f7266949ab2826cede (patch)
tree44918730b1f9f5a567ac89f15ab661ae7be1e1a9 /python
parent50756e0efb5081d3379fa874ca41ab57bdf2798d (diff)
parent52097d7edaa97379a4a604be4feb24e5e9c3bd73 (diff)
downloadpython-apt-8ca5779cfe930f8a423969f7266949ab2826cede.tar.gz
merged from the debian-sid branch
Diffstat (limited to 'python')
-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)