From fd183f637afc8786991782d2135f8885c8490fc2 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Fri, 18 Jan 2008 17:02:12 +0100 Subject: * python/tar.cc: - fix .lzma extraction (thanks to bigjools) --- python/tar.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'python') 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) -- cgit v1.2.3