diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-10-19 18:07:20 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-10-19 18:07:20 +0200 |
| commit | 46885bf24dc2cf9b3986abcf40c040e20566402a (patch) | |
| tree | 1471609c09a6c27624651d179a97e39939f0c747 /python/tar.cc | |
| parent | 3c35eb3da332cf30781dba78ed777b26934136ac (diff) | |
| parent | b0995cca556668a4eced03e40e3edbc7362c2a10 (diff) | |
| download | python-apt-46885bf24dc2cf9b3986abcf40c040e20566402a.tar.gz | |
* merged from ubuntu:
- use logging instead of print
- update distro template Ubuntu.info.in
- add xz compression support
Diffstat (limited to 'python/tar.cc')
| -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 b994d4e7..e42a9c50 100644 --- a/python/tar.cc +++ b/python/tar.cc @@ -182,6 +182,8 @@ PyObject *debExtract(PyObject *Self,PyObject *Args) Comp = "bzip2"; else if(strcmp(".lzma", &Chunk[strlen(Chunk)-5]) == 0) 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) |
