From 97edeff6bfd4a5bd493c37a0ff1b98b1b6cc38b0 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Thu, 28 Oct 2010 18:07:07 +0400 Subject: [PATCH] Add support tar.lzma to unpack. --- pym/cl_distr.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pym/cl_distr.py b/pym/cl_distr.py index f5d403b..d87061b 100644 --- a/pym/cl_distr.py +++ b/pym/cl_distr.py @@ -922,6 +922,8 @@ class ArchiveDistributive(Distributive): return "gzip" elif "7-zip archive data" in mes: return "7z" + elif file and file.endswith(".tar.lzma"): + return "7z" else: return None @@ -946,7 +948,8 @@ class ArchiveDistributive(Distributive): res,mes = self.runOsCommand("tar xf %s -C %s/"% (archfile,directory)) else: - raise DistributiveError(_("Unknown archive type by '%s'")%file) + raise DistributiveError(_("Unknown archive type by '%s'")% + archfile) if res != 0: raise DistributiveError(_("Error during unpacking\n%s")%mes)