diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2008-01-18 17:02:12 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2008-01-18 17:02:12 +0100 |
| commit | fd183f637afc8786991782d2135f8885c8490fc2 (patch) | |
| tree | aa57a43ad3525c3716a3c817ccd02fae63f39777 | |
| parent | 26d4ca58c95a386e2ff2e2e5e6b50ec1468b5f86 (diff) | |
| download | python-apt-fd183f637afc8786991782d2135f8885c8490fc2.tar.gz | |
* python/tar.cc:
- fix .lzma extraction (thanks to bigjools)
| -rw-r--r-- | debian/changelog | 2 | ||||
| -rw-r--r-- | python/tar.cc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 54859732..e3d4e109 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ python-apt (0.7.5) UNRELEASED; urgency=low * use the new CacheFile::ListUpdate() code * add example in doc/examples/update.py + * python/tar.cc: + - fix .lzma extraction (thanks to bigjools) -- Michael Vogt <michael.vogt@ubuntu.com> Fri, 04 Jan 2008 21:17:00 +0100 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) |
