diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2008-01-18 17:05:34 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2008-01-18 17:05:34 +0100 |
| commit | f2cd8c2ab2b7886c11c44e17fb1341c06f60e1f9 (patch) | |
| tree | 1ca9270daade0ecf7523fb93da44d9d3a12b744d /python | |
| parent | abfffe610b0f5256117a6af165ee182bbc60b6a5 (diff) | |
| parent | fd183f637afc8786991782d2135f8885c8490fc2 (diff) | |
| download | python-apt-f2cd8c2ab2b7886c11c44e17fb1341c06f60e1f9.tar.gz | |
* python/tar.cc:
- fix .lzma extraction (thanks to bigjools)
Diffstat (limited to 'python')
| -rw-r--r-- | python/tar.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/tar.cc b/python/tar.cc index 22c0327e..61c9d708 100644 --- a/python/tar.cc +++ b/python/tar.cc @@ -168,6 +168,8 @@ PyObject *debExtract(PyObject *Self,PyObject *Args) // Extract it. if (strcmp(".bz2", &Chunk[strlen(Chunk)-4]) == 0) Comp = "bzip2"; + else if(strcmp(".lzma", &Chunk[strlen(Chunk)-5]) == 0) + Comp = "lzma"; ExtractTar Tar(Deb.GetFile(),Member->Size,Comp); ProcessTar Proc(Function); if (Tar.Go(Proc) == false) |
